| java.lang.Object org.cougaar.community.manager.CommunityAccessManager org.cougaar.community.manager.SimpleCommunityAccessManager
SimpleCommunityAccessManager | public class SimpleCommunityAccessManager extends CommunityAccessManager (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.
|
authorizeUsingDefaultPolicy | protected boolean authorizeUsingDefaultPolicy(String communityName, String requester, int operation, String target)(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 |
getKnownEntities | protected Set getKnownEntities()(Code) | | Get entity names from communities.xml file on config path.
Set of predefined agent/community names |
|
|