import org.wamblee.persistence.AbstractPersistent;
-
/**
* Determiens if an operation is a subclass of a specified operation.
*/
-public class IsaOperationCondition extends AbstractPersistent
- implements OperationCondition {
+public class IsaOperationCondition extends AbstractPersistent implements
+ OperationCondition {
/**
* Operation that the other operation must be a subclass of.
*/
- private Class<?extends Operation> operation;
+ private Class<? extends Operation> operation;
-/**
+ /**
* Constructs the condition.
*
* @param aOperation
* Operation that an operation must be an instance of.
*/
- public IsaOperationCondition(Class<?extends Operation> aOperation) {
+ public IsaOperationCondition(Class<? extends Operation> aOperation) {
operation = aOperation;
}
-/**
+ /**
* For OR mapping.
*
*/
/*
* (non-Javadoc)
- *
- * @see org.wamblee.security.authorization.OperationCondition#matches(org.wamblee.security.authorization.Operation)
- */
- /**
- * DOCUMENT ME!
- *
- * @param aOperation DOCUMENT ME!
- *
- * @return DOCUMENT ME!
+ *
+ * @see
+ * org.wamblee.security.authorization.OperationCondition#matches(org.wamblee
+ * .security.authorization.Operation)
*/
public boolean matches(Operation aOperation) {
return operation.isInstance(aOperation);
/**
* Gets the operation as a string. For OR mapping only.
- *
+ *
* @return Operation string.
*/
protected String getOperationString() {
/**
* Sets the operation as a string. For OR mapping only.
- *
- * @param aOperation Operation string.
- *
- * @throws IllegalArgumentException DOCUMENT ME!
+ *
+ * @param aOperation
+ * Operation string.
+ *
*/
protected void setOperationString(String aOperation) {
if (aOperation == null) {
}
try {
- operation = (Class<?extends Operation>) Class.forName(aOperation);
+ operation = (Class<? extends Operation>) Class.forName(aOperation);
} catch (Exception e) {
- throw new IllegalArgumentException("Unknown class '" + aOperation
- + "'");
+ throw new IllegalArgumentException("Unknown class '" + aOperation +
+ "'");
}
}
/*
* (non-Javadoc)
- *
+ *
* @see java.lang.Object#toString()
*/
- /**
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
@Override
public String toString() {
return "IsaOperationCondition(operation=" + operation.getName() + ")";