Hi,

While writing r/w Junit test cases for OpenCMIS client API I'm struggling a 
little bit with API usability. Creation methods require always parameter for 
access control and policy in spite of the fact that this is optional:

// create additional optional parameter
List<Ace> aceAdd = new ArrayList<Ace>();     // all empty
List<Ace> aceRemove = new ArrayList<Ace>();
List<Policy> pol = new ArrayList<Policy>;

ObjectId newId = this.session.createFolder(properties, parentId, pol, aceAdd, 
aceRemove);

Like we have introduced an operation context for read methods to sum up 
parameters I suggest to do it similar for write operation. My proposal is to 
introduce a AccessContext interface which could then have a default for addAcl, 
removeAcl and policy parameter.

Let me know what do you think.

Regards,
Stephan


Stephan Klevenz
Development Architect
TD Core UI Infr (AG)
ECM-I
SAP AG
Dietmar-Hopp-Allee 16
69190 Walldorf, Germany
T +49 6227 7-65878
F +49 6227 78-36242
M +49 160 90432408
E [email protected]<mailto:[email protected]>
www.sap.com

Pflichtangaben/Mandatory Disclosure Statements: 
http://www.sap.com/company/legal/impressum.epx

Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige 
vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich 
erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung 
oder Weitergabe der E-Mail ausdrücklich untersagt. Bitte benachrichtigen Sie 
uns und vernichten Sie die empfangene E-Mail. Vielen Dank.

This e-mail may contain trade secrets or privileged, undisclosed, or otherwise 
confidential information. If you have received this e-mail in error, you are 
hereby notified that any review, copying, or distribution of it is strictly 
prohibited. Please inform us immediately and destroy the original transmittal. 
Thank you for your cooperation.




Reply via email to