Update of
/var/cvs/applications/cloudcontext/src/org/mmbase/security/implementation/cloudcontext/builders
In directory james.mmbase.org:/tmp/cvs-serv4088/builders
Modified Files:
PeopleContexts.java RightsRel.java
Log Message:
several details, like @Override annotations
See also:
http://cvs.mmbase.org/viewcvs/applications/cloudcontext/src/org/mmbase/security/implementation/cloudcontext/builders
Index: PeopleContexts.java
===================================================================
RCS file:
/var/cvs/applications/cloudcontext/src/org/mmbase/security/implementation/cloudcontext/builders/PeopleContexts.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- PeopleContexts.java 21 Jun 2007 15:50:20 -0000 1.8
+++ PeopleContexts.java 28 Apr 2009 08:35:09 -0000 1.9
@@ -21,13 +21,14 @@
* to the mmbaseusers node.
*
* @author Michiel Meeuwissen
- * @version $Id: PeopleContexts.java,v 1.8 2007/06/21 15:50:20 nklasens Exp $
+ * @version $Id: PeopleContexts.java,v 1.9 2009/04/28 08:35:09 michiel Exp $
*/
public class PeopleContexts extends Contexts {
protected String peopleBuilder = "people";
+ @Override
public boolean init() {
String s = getInitParameters().get("peoplebuilder");
if (s != null) {
Index: RightsRel.java
===================================================================
RCS file:
/var/cvs/applications/cloudcontext/src/org/mmbase/security/implementation/cloudcontext/builders/RightsRel.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- RightsRel.java 23 Dec 2008 17:30:42 -0000 1.17
+++ RightsRel.java 28 Apr 2009 08:35:09 -0000 1.18
@@ -21,7 +21,7 @@
* @author Eduard Witteveen
* @author Pierre van Rooden
* @author Michiel Meeuwissen
- * @version $Id: RightsRel.java,v 1.17 2008/12/23 17:30:42 michiel Exp $
+ * @version $Id: RightsRel.java,v 1.18 2009/04/28 08:35:09 michiel Exp $
*/
public class RightsRel extends InsRel {
@@ -41,6 +41,7 @@
}
// inherited
+ @Override
public String getGUIIndicator(MMObjectNode node) {
return node.getStringValue(OPERATION_FIELD) + " " +
super.getGUIIndicator(node);
}
@@ -48,14 +49,13 @@
/**
* Operation defaults to 'read'.
*/
+ @Override
public void setDefaults(MMObjectNode node) {
// default -> read
node.setValue(OPERATION_FIELD, Operation.READ.toString());
super.setDefaults(node);
}
-
-
public MMObjectNode getNewNode(String owner, int snumber, int dnumber,
Operation operation) {
MMObjectNode rel = getNewNode(owner);
rel.setValue("snumber", snumber);
@@ -65,7 +65,7 @@
return rel;
}
-
+ @Override
public int insert(String owner, MMObjectNode node) {
if(node.getStringValue("operation").equals("all")) {
@@ -82,6 +82,7 @@
/**
* Check on possible values for operation.
*/
+ @Override
public boolean setValue(MMObjectNode node, String fieldName) {
// most situations, handle in inherited class
if (!fieldName.equals(OPERATION_FIELD)) super.setValue(node,
fieldName);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs