| java.lang.Object org.cougaar.community.manager.CommunityAccessManager
All known Subclasses: org.cougaar.community.manager.SimpleCommunityAccessManager,
CommunityAccessManager | public class CommunityAccessManager implements CommunityProtectionService,CommunityServiceConstants(Code) | | Performs access control for community manager. All authorization requests
are delegated to the CommunityProtectionService if available. If the
CommunityProtectionService is not available the requests are delegated to
the "authorizeUsingDefaultPolicy" method. The base implementation of this
method approves all requests. Alternate implementations should exend this
class and override the authorizeUsingDefaultPolicy method. The use of an
alternate implementation is specified by defining the new class in the
"org.cougaar.community.access.manager.classname" system property.
|
authorize | final public boolean authorize(String communityName, String requester, int operation, String target, ModificationItem[] attrMods)(Code) | | Authorize request to read or modify community state.
Parameters: communityName - String Name of affected community Parameters: requester - String Name of requesting agent Parameters: operation - int Requested operation (refer toorg.cougaar.core.service.CommunityServiceConstantsfor valid op codes) Parameters: target - String Name of affected community member or null iftarget is community Parameters: attrMods - Requested attribute changes boolean Return true if request is authorized bycurrent policy |
authorizeUsingDefaultPolicy | protected boolean authorizeUsingDefaultPolicy(String communityName, String requester, int operation, String target, ModificationItem[] attrMods)(Code) | | Authorization method that is used if the CommunityProtectionService is
not available.
Parameters: communityName - String Name of affected community Parameters: requester - String Name of requesting agent Parameters: operation - int Requested operation (refer toorg.cougaar.core.service.CommunityServiceConstantsfor valid op codes) Parameters: target - String Name of affected community member or null iftarget is community boolean Return true if request is authorized bycurrent policy |
|
|