edu.internet2.middleware.grouper.privs
Interface GrouperPrivilege

All Known Implementing Classes:
AccessPrivilege, AttributeDefPrivilege, NamingPrivilege

public interface GrouperPrivilege

combines AccessPrivilege and NamingPrivilege


Method Summary
 GrouperAPI getGrouperApi()
          get the object this privilege is assigned to (e.g.
 String getImplementationName()
          Get name of implementation class for this privilege type.
 String getName()
          Get name of privilege.
 edu.internet2.middleware.subject.Subject getOwner()
          Get subject which was granted privilege on this object.
 edu.internet2.middleware.subject.Subject getSubject()
          Get subject which has this privilege.
 String getType()
          get type of privilege (e.g.
 void internalSetSubject(edu.internet2.middleware.subject.Subject subject)
          if we are caching subject objects, then set it here...
 boolean isRevokable()
          Returns true if privilege can be revoked.
 

Method Detail

getGrouperApi

GrouperAPI getGrouperApi()
get the object this privilege is assigned to (e.g. group or stem object)

Returns:
the group or stem

getImplementationName

String getImplementationName()
Get name of implementation class for this privilege type. (e.g. from grouper.properties)

Returns:
the name

getType

String getType()
get type of privilege (e.g. access or naming)

Returns:
the type

getName

String getName()
Get name of privilege.

Returns:
Name of privilege.

getOwner

edu.internet2.middleware.subject.Subject getOwner()
Get subject which was granted privilege on this object.

Returns:
Subject that was granted privilege.

getSubject

edu.internet2.middleware.subject.Subject getSubject()
Get subject which has this privilege.

Returns:
Subject that has this privilege.

isRevokable

boolean isRevokable()
Returns true if privilege can be revoked.

Returns:
Boolean true if privilege can be revoked.

internalSetSubject

void internalSetSubject(edu.internet2.middleware.subject.Subject subject)
if we are caching subject objects, then set it here... do not change the subject here

Parameters:
subject -