edu.internet2.middleware.grouper.permissions
Class PermissionEntryBase

java.lang.Object
  extended by edu.internet2.middleware.grouper.GrouperAPI
      extended by edu.internet2.middleware.grouper.permissions.PermissionEntryBase
All Implemented Interfaces:
HibGrouperLifecycle, GrouperCloneable, PermissionEntry, GrouperUtil.FieldValuable, Serializable, Comparable<PermissionEntry>, org.hibernate.classic.Lifecycle
Direct Known Subclasses:
PermissionEntryImpl, PITPermissionAllView

public abstract class PermissionEntryBase
extends GrouperAPI
implements PermissionEntry

Author:
shilen $Id$
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.internet2.middleware.grouper.permissions.PermissionEntry
PermissionEntry.PermissionType
 
Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
PermissionEntryBase()
           
 
Method Summary
 GrouperAPI clone()
          deep clone the fields in this object
 int compareTo(PermissionEntry o)
           
 String getAction()
          action on the permission (e.g.
 String getActionId()
          action on the permission (e.g.
 String getAssignmentNotes()
          notes on the assignment of privilege
 AttributeAssign getAttributeAssign()
          get attribute assign
 int getAttributeAssignActionSetDepth()
          depth of action hierarchy, 0 means immediate
 AttributeAssignDelegatable getAttributeAssignDelegatable()
          get the enum for delegatable, do not return null
 String getAttributeAssignDelegatableDb()
          internal method for hibernate to persist this enum
 String getAttributeAssignId()
          id of the attribute assign row, either to the role, or to the role member pair
 String getAttributeAssignTypeDb()
           
 AttributeDef getAttributeDef()
           
 String getAttributeDefId()
          id of the attributeDef
 AttributeDefName getAttributeDefName()
          get attribute def name
 String getAttributeDefNameDispName()
          display name of the attribute def name which is the permission assigned to the role or subject
 String getAttributeDefNameId()
          id of the attribute def name which is the permission
 String getAttributeDefNameName()
          name of the attribute def name which is the permission assigned to the role or subject
 int getAttributeDefNameSetDepth()
          depth of attributeDefName set hierarchy, 0 means immediate
 Timestamp getDisabledTime()
          if there is a date here, and it is in the past, this assignment is disabled
 Long getDisabledTimeDb()
          if there is a date here, and it is in the past, this assignment is disabled
 String getDisallowedDb()
          if this is a permission, then if this permission assignment is allowed or not
 String getEnabledDb()
          true or false for if this assignment is enabled (e.g.
 Timestamp getEnabledTime()
          if there is a date here, and it is in the future, this assignment is disabled until that time
 Long getEnabledTimeDb()
          if there is a date here, and it is in the future, this assignment is disabled until that time
 Timestamp getEndTime()
          The end time for this permission entry.
 Timestamp getImmediateMshipDisabledTime()
          when the underlying membership will be disabled
 Long getImmediateMshipDisabledTimeDb()
          when the underlying membership will be disabled
 Timestamp getImmediateMshipEnabledTime()
          when the underlying membership was enabled
 Long getImmediateMshipEnabledTimeDb()
          when the underlying membership was enabled
 Member getMember()
          get the member
 String getMemberId()
          id of the member that has the permission
 int getMembershipDepth()
          depth of memberships, 0 means immediate
 String getMembershipId()
          id of the membership row
 PermissionHeuristics getPermissionHeuristics()
          cache the weighting of this assignment
 PermissionEntry.PermissionType getPermissionType()
          type of permission, either assigned to role, or assigned to role and user combined: role_subject
 String getPermissionTypeDb()
          type of permission, either assigned to role, or assigned to role and user combined: role_subject
 Role getRole()
          owner role
 String getRoleDisplayName()
          display name of the role which the subject is in to have the permission
 String getRoleId()
          id of the role which the subject is in to get the permission
 String getRoleName()
          role which has the permission or which the subject must be in to have the permission
 int getRoleSetDepth()
          depth of role hierarchy, 0 means immediate, -1 means no role set involved
 Timestamp getStartTime()
          The start time for this permission entry.
 String getSubjectId()
          subject id of the subject which has the permissions
 String getSubjectSourceId()
          source id of the subject which has the permissions
 boolean isAllowedOverall()
          this will be if this permissions is allowed (not in DB/assignment, but overall).
 boolean isDisallowed()
          if this is a permission, then if this permission assignment is allowed or not
 boolean isEnabled()
          true or false for if this assignment is enabled (e.g.
 boolean isImmediate(PermissionEntry.PermissionType thePermissionType)
           
 boolean isImmediateMembership()
          see if the membership is unassignable directly
 boolean isImmediatePermission()
          see if the permission is unassignable directly
 void setAction(String action1)
          action on the permission (e.g.
 void setActionId(String actionId1)
          action on the permission (e.g.
 void setAllowedOverall(boolean allowedOverall1)
          this will be if this permissions is allowed (not in DB/assignment, but overall).
 void setAssignmentNotes(String assignmentNotes1)
          notes on the assignment of privilege
 void setAttributeAssignActionSetDepth(int attributeAssignActionSetDepth1)
          depth of action hierarchy, 0 means immediate
 void setAttributeAssignDelegatable(AttributeAssignDelegatable attributeAssignDelegatable1)
           
 void setAttributeAssignDelegatableDb(String theAttributeAssignDelegatableDb)
          internal method for hibernate to set if delegatable
 void setAttributeAssignId(String attributeAssignId1)
          id of the attribute assign row, either to the role, or to the role member pair
 void setAttributeAssignTypeDb(String theAttributeAssignTypeDb)
           
 void setAttributeDefId(String attributeDefId1)
          id of the attributeDef
 void setAttributeDefNameDispName(String attributeDefNameDispName1)
          display name of the attribute def name which is the permission assigned to the role or subject
 void setAttributeDefNameId(String attributeDefNameId1)
          id of the attribute def name which is the permission
 void setAttributeDefNameName(String attributeDefNameName1)
          name of the attribute def name which is the permission assigned to the role or subject
 void setAttributeDefNameSetDepth(int attributeDefNameSetDepth1)
          depth of attributeDefName set hierarchy, 0 means immediate
 void setDisabledTime(Timestamp disabledTimeDb1)
          if there is a date here, and it is in the past, this assignment is disabled
 void setDisabledTimeDb(Long disabledTimeDb1)
          if there is a date here, and it is in the past, this assignment is disabled
 void setDisallowed(boolean disallowed1)
          if this is a permission, then if this permission assignment is allowed or not
 void setDisallowedDb(String disallowed1)
          if this is a permission, then if this permission assignment is allowed or not
 void setEnabled(boolean enabled1)
          true or false for if this assignment is enabled (e.g.
 void setEnabledDb(String enabled1)
          true or false for if this assignment is enabled (e.g.
 void setEnabledTime(Timestamp enabledTimeDb1)
          if there is a date here, and it is in the future, this assignment is disabled until that time
 void setEnabledTimeDb(Long enabledTimeDb1)
          if there is a date here, and it is in the future, this assignment is disabled until that time
 void setImmediateMshipDisabledTimeDb(Long immediateMshipDisabledTimeDb1)
          when the underlying membership was enabled
 void setImmediateMshipDisabledTimeDb(Timestamp immediateMshipDisabledTimeDb1)
          when the underlying membership was enabled
 void setImmediateMshipEnabledTime(Timestamp immediateMshipEnabledTimeDb1)
          when the underlying membership was enabled
 void setImmediateMshipEnabledTimeDb(Long immediateMshipEnabledTimeDb1)
          when the underlying membership was enabled
 void setMemberId(String memberId1)
          id of the member that has the permission
 void setMembershipDepth(int membershipDepth1)
          depth of memberships, 0 means immediate
 void setMembershipId(String membershipId1)
          id of the membership row
 void setPermissionHeuristics(PermissionHeuristics permissionHeuristics1)
          cache the weighting of this assignment
 void setPermissionTypeDb(String permissionTypeDb1)
          type of permission, either assigned to role, or assigned to role and user combined: role_subject
 void setRoleDisplayName(String roleDisplayName1)
          display name of the role which the subject is in to have the permission
 void setRoleId(String roleId1)
          id of the role which the subject is in to get the permission
 void setRoleName(String roleName1)
          role which has the permission or which the subject must be in to have the permission
 void setRoleSetDepth(int roleSetDepth1)
          depth of role hierarchy, 0 means immediate, -1 means no role set involved
 void setSubjectId(String subjectId1)
          subject id of the subject which has the permissions
 void setSubjectSourceId(String subjectSourceId1)
          source id of the subject which has the permissions
 
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onPreSave, onPreUpdate, onSave, onUpdate, setHibernateVersionNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.internet2.middleware.grouper.permissions.PermissionEntry
isActive
 

Constructor Detail

PermissionEntryBase

public PermissionEntryBase()
Method Detail

getPermissionHeuristics

public PermissionHeuristics getPermissionHeuristics()
Description copied from interface: PermissionEntry
cache the weighting of this assignment

Specified by:
getPermissionHeuristics in interface PermissionEntry
Returns:
the permission heuristic
See Also:
PermissionEntry.getPermissionHeuristics()

setPermissionHeuristics

public void setPermissionHeuristics(PermissionHeuristics permissionHeuristics1)
Description copied from interface: PermissionEntry
cache the weighting of this assignment

Specified by:
setPermissionHeuristics in interface PermissionEntry
See Also:
PermissionEntry.setPermissionHeuristics(edu.internet2.middleware.grouper.permissions.PermissionHeuristics)

getDisallowedDb

public String getDisallowedDb()
Description copied from interface: PermissionEntry
if this is a permission, then if this permission assignment is allowed or not

Specified by:
getDisallowedDb in interface PermissionEntry
Returns:
the allowed
See Also:
PermissionEntry.getDisallowedDb()

isDisallowed

public boolean isDisallowed()
Description copied from interface: PermissionEntry
if this is a permission, then if this permission assignment is allowed or not

Specified by:
isDisallowed in interface PermissionEntry
Returns:
if allowed
See Also:
PermissionEntry.isDisallowed()

setDisallowed

public void setDisallowed(boolean disallowed1)
Description copied from interface: PermissionEntry
if this is a permission, then if this permission assignment is allowed or not

Specified by:
setDisallowed in interface PermissionEntry
Parameters:
disallowed1 - the allowed to set
See Also:
PermissionEntry.setDisallowed(boolean)

setDisallowedDb

public void setDisallowedDb(String disallowed1)
Description copied from interface: PermissionEntry
if this is a permission, then if this permission assignment is allowed or not

Specified by:
setDisallowedDb in interface PermissionEntry
Parameters:
disallowed1 - the allowed to set
See Also:
PermissionEntry.setDisallowedDb(java.lang.String)

getAssignmentNotes

public String getAssignmentNotes()
Description copied from interface: PermissionEntry
notes on the assignment of privilege

Specified by:
getAssignmentNotes in interface PermissionEntry
Returns:
notes
See Also:
PermissionEntry.getAssignmentNotes()

getAttributeAssign

public AttributeAssign getAttributeAssign()
Description copied from interface: PermissionEntry
get attribute assign

Specified by:
getAttributeAssign in interface PermissionEntry
Returns:
attributeAssign
See Also:
PermissionEntry.getAttributeAssign()

getAttributeAssignDelegatable

public AttributeAssignDelegatable getAttributeAssignDelegatable()
Description copied from interface: PermissionEntry
get the enum for delegatable, do not return null

Specified by:
getAttributeAssignDelegatable in interface PermissionEntry
Returns:
the attributeAssignDelegatable
See Also:
PermissionEntry.getAttributeAssignDelegatable()

getAttributeAssignDelegatableDb

public String getAttributeAssignDelegatableDb()
Description copied from interface: PermissionEntry
internal method for hibernate to persist this enum

Specified by:
getAttributeAssignDelegatableDb in interface PermissionEntry
Returns:
the string value (enum name)
See Also:
PermissionEntry.getAttributeAssignDelegatableDb()

getAttributeDef

public AttributeDef getAttributeDef()
Specified by:
getAttributeDef in interface PermissionEntry
Returns:
attributeDef
See Also:
PermissionEntry.getAttributeDef()

getAttributeDefName

public AttributeDefName getAttributeDefName()
Description copied from interface: PermissionEntry
get attribute def name

Specified by:
getAttributeDefName in interface PermissionEntry
Returns:
attributeDefName
See Also:
PermissionEntry.getAttributeDefName()

getAttributeDefNameDispName

public String getAttributeDefNameDispName()
Description copied from interface: PermissionEntry
display name of the attribute def name which is the permission assigned to the role or subject

Specified by:
getAttributeDefNameDispName in interface PermissionEntry
Returns:
the attributeDefNameDispName
See Also:
PermissionEntry.getAttributeDefNameDispName()

getDisabledTime

public Timestamp getDisabledTime()
Description copied from interface: PermissionEntry
if there is a date here, and it is in the past, this assignment is disabled

Specified by:
getDisabledTime in interface PermissionEntry
Returns:
the disabledTimeDb
See Also:
PermissionEntry.getDisabledTime()

getDisabledTimeDb

public Long getDisabledTimeDb()
Description copied from interface: PermissionEntry
if there is a date here, and it is in the past, this assignment is disabled

Specified by:
getDisabledTimeDb in interface PermissionEntry
Returns:
the disabledTimeDb
See Also:
PermissionEntry.getDisabledTimeDb()

getEnabledDb

public String getEnabledDb()
Description copied from interface: PermissionEntry
true or false for if this assignment is enabled (e.g. might have expired)

Specified by:
getEnabledDb in interface PermissionEntry
Returns:
the enabled
See Also:
PermissionEntry.getEnabledDb()

getEnabledTime

public Timestamp getEnabledTime()
Description copied from interface: PermissionEntry
if there is a date here, and it is in the future, this assignment is disabled until that time

Specified by:
getEnabledTime in interface PermissionEntry
Returns:
the enabledTimeDb
See Also:
PermissionEntry.getEnabledTime()

getEnabledTimeDb

public Long getEnabledTimeDb()
Description copied from interface: PermissionEntry
if there is a date here, and it is in the future, this assignment is disabled until that time

Specified by:
getEnabledTimeDb in interface PermissionEntry
Returns:
the enabledTimeDb
See Also:
PermissionEntry.getEnabledTimeDb()

getImmediateMshipDisabledTime

public Timestamp getImmediateMshipDisabledTime()
Description copied from interface: PermissionEntry
when the underlying membership will be disabled

Specified by:
getImmediateMshipDisabledTime in interface PermissionEntry
Returns:
time
See Also:
PermissionEntry.getImmediateMshipDisabledTime()

getImmediateMshipDisabledTimeDb

public Long getImmediateMshipDisabledTimeDb()
Description copied from interface: PermissionEntry
when the underlying membership will be disabled

Specified by:
getImmediateMshipDisabledTimeDb in interface PermissionEntry
Returns:
time
See Also:
PermissionEntry.getImmediateMshipDisabledTimeDb()

getImmediateMshipEnabledTime

public Timestamp getImmediateMshipEnabledTime()
Description copied from interface: PermissionEntry
when the underlying membership was enabled

Specified by:
getImmediateMshipEnabledTime in interface PermissionEntry
Returns:
time
See Also:
PermissionEntry.getImmediateMshipEnabledTime()

getImmediateMshipEnabledTimeDb

public Long getImmediateMshipEnabledTimeDb()
Description copied from interface: PermissionEntry
when the underlying membership was enabled

Specified by:
getImmediateMshipEnabledTimeDb in interface PermissionEntry
Returns:
time
See Also:
PermissionEntry.getImmediateMshipEnabledTimeDb()

getMember

public Member getMember()
Description copied from interface: PermissionEntry
get the member

Specified by:
getMember in interface PermissionEntry
Returns:
the member
See Also:
PermissionEntry.getMember()

getRole

public Role getRole()
Description copied from interface: PermissionEntry
owner role

Specified by:
getRole in interface PermissionEntry
Returns:
the ownerRole
See Also:
PermissionEntry.getRole()

getRoleDisplayName

public String getRoleDisplayName()
Description copied from interface: PermissionEntry
display name of the role which the subject is in to have the permission

Specified by:
getRoleDisplayName in interface PermissionEntry
Returns:
the roleDisplayName
See Also:
PermissionEntry.getRoleDisplayName()

isAllowedOverall

public boolean isAllowedOverall()
Description copied from interface: PermissionEntry
this will be if this permissions is allowed (not in DB/assignment, but overall). So if we are considering limits, and the limit is false, then this will be false for a permission where the disallow is set to false

Specified by:
isAllowedOverall in interface PermissionEntry
Returns:
true if allowed overall
See Also:
PermissionEntry.isAllowedOverall()

isEnabled

public boolean isEnabled()
Description copied from interface: PermissionEntry
true or false for if this assignment is enabled (e.g. might have expired)

Specified by:
isEnabled in interface PermissionEntry
Returns:
the enabled
See Also:
PermissionEntry.isEnabled()

isImmediate

public boolean isImmediate(PermissionEntry.PermissionType thePermissionType)
Specified by:
isImmediate in interface PermissionEntry
Returns:
if immediate, considering which permission type we are looking at
See Also:
PermissionEntry.isImmediate(edu.internet2.middleware.grouper.permissions.PermissionEntry.PermissionType)

isImmediateMembership

public boolean isImmediateMembership()
Description copied from interface: PermissionEntry
see if the membership is unassignable directly

Specified by:
isImmediateMembership in interface PermissionEntry
Returns:
true if immediate
See Also:
PermissionEntry.isImmediateMembership()

isImmediatePermission

public boolean isImmediatePermission()
Description copied from interface: PermissionEntry
see if the permission is unassignable directly

Specified by:
isImmediatePermission in interface PermissionEntry
Returns:
true if immediate
See Also:
PermissionEntry.isImmediatePermission()

setAllowedOverall

public void setAllowedOverall(boolean allowedOverall1)
Description copied from interface: PermissionEntry
this will be if this permissions is allowed (not in DB/assignment, but overall). So if we are considering limits, and the limit is false, then this will be false for a permission where the disallow is set to false

Specified by:
setAllowedOverall in interface PermissionEntry
See Also:
PermissionEntry.setAllowedOverall(boolean)

setAssignmentNotes

public void setAssignmentNotes(String assignmentNotes1)
Description copied from interface: PermissionEntry
notes on the assignment of privilege

Specified by:
setAssignmentNotes in interface PermissionEntry
See Also:
PermissionEntry.setAssignmentNotes(java.lang.String)

setAttributeAssignDelegatable

public void setAttributeAssignDelegatable(AttributeAssignDelegatable attributeAssignDelegatable1)
Specified by:
setAttributeAssignDelegatable in interface PermissionEntry
Parameters:
attributeAssignDelegatable1 - the attributeAssignDelegatable to set
See Also:
PermissionEntry.setAttributeAssignDelegatable(edu.internet2.middleware.grouper.attr.assign.AttributeAssignDelegatable)

setAttributeAssignDelegatableDb

public void setAttributeAssignDelegatableDb(String theAttributeAssignDelegatableDb)
Description copied from interface: PermissionEntry
internal method for hibernate to set if delegatable

Specified by:
setAttributeAssignDelegatableDb in interface PermissionEntry
See Also:
PermissionEntry.setAttributeAssignDelegatableDb(java.lang.String)

setAttributeDefNameDispName

public void setAttributeDefNameDispName(String attributeDefNameDispName1)
Description copied from interface: PermissionEntry
display name of the attribute def name which is the permission assigned to the role or subject

Specified by:
setAttributeDefNameDispName in interface PermissionEntry
Parameters:
attributeDefNameDispName1 - the attributeDefNameDispName to set
See Also:
PermissionEntry.setAttributeDefNameDispName(java.lang.String)

setDisabledTime

public void setDisabledTime(Timestamp disabledTimeDb1)
Description copied from interface: PermissionEntry
if there is a date here, and it is in the past, this assignment is disabled

Specified by:
setDisabledTime in interface PermissionEntry
Parameters:
disabledTimeDb1 - the disabledTimeDb to set
See Also:
PermissionEntry.setDisabledTime(java.sql.Timestamp)

setDisabledTimeDb

public void setDisabledTimeDb(Long disabledTimeDb1)
Description copied from interface: PermissionEntry
if there is a date here, and it is in the past, this assignment is disabled

Specified by:
setDisabledTimeDb in interface PermissionEntry
Parameters:
disabledTimeDb1 - the disabledTimeDb to set
See Also:
PermissionEntry.setDisabledTimeDb(java.lang.Long)

setEnabled

public void setEnabled(boolean enabled1)
Description copied from interface: PermissionEntry
true or false for if this assignment is enabled (e.g. might have expired)

Specified by:
setEnabled in interface PermissionEntry
Parameters:
enabled1 - the enabled to set
See Also:
PermissionEntry.setEnabled(boolean)

setEnabledDb

public void setEnabledDb(String enabled1)
Description copied from interface: PermissionEntry
true or false for if this assignment is enabled (e.g. might have expired)

Specified by:
setEnabledDb in interface PermissionEntry
Parameters:
enabled1 - the enabled to set
See Also:
PermissionEntry.setEnabledDb(java.lang.String)

setEnabledTime

public void setEnabledTime(Timestamp enabledTimeDb1)
Description copied from interface: PermissionEntry
if there is a date here, and it is in the future, this assignment is disabled until that time

Specified by:
setEnabledTime in interface PermissionEntry
Parameters:
enabledTimeDb1 - the enabledTimeDb to set
See Also:
PermissionEntry.setEnabledTime(java.sql.Timestamp)

setEnabledTimeDb

public void setEnabledTimeDb(Long enabledTimeDb1)
Description copied from interface: PermissionEntry
if there is a date here, and it is in the future, this assignment is disabled until that time

Specified by:
setEnabledTimeDb in interface PermissionEntry
Parameters:
enabledTimeDb1 - the enabledTimeDb to set
See Also:
PermissionEntry.setEnabledTimeDb(java.lang.Long)

setImmediateMshipDisabledTimeDb

public void setImmediateMshipDisabledTimeDb(Long immediateMshipDisabledTimeDb1)
Description copied from interface: PermissionEntry
when the underlying membership was enabled

Specified by:
setImmediateMshipDisabledTimeDb in interface PermissionEntry
See Also:
PermissionEntry.setImmediateMshipDisabledTimeDb(java.lang.Long)

setImmediateMshipDisabledTimeDb

public void setImmediateMshipDisabledTimeDb(Timestamp immediateMshipDisabledTimeDb1)
Description copied from interface: PermissionEntry
when the underlying membership was enabled

Specified by:
setImmediateMshipDisabledTimeDb in interface PermissionEntry
See Also:
PermissionEntry.setImmediateMshipDisabledTimeDb(java.sql.Timestamp)

setImmediateMshipEnabledTime

public void setImmediateMshipEnabledTime(Timestamp immediateMshipEnabledTimeDb1)
Description copied from interface: PermissionEntry
when the underlying membership was enabled

Specified by:
setImmediateMshipEnabledTime in interface PermissionEntry
See Also:
PermissionEntry.setImmediateMshipEnabledTime(java.sql.Timestamp)

setImmediateMshipEnabledTimeDb

public void setImmediateMshipEnabledTimeDb(Long immediateMshipEnabledTimeDb1)
Description copied from interface: PermissionEntry
when the underlying membership was enabled

Specified by:
setImmediateMshipEnabledTimeDb in interface PermissionEntry
See Also:
PermissionEntry.setImmediateMshipEnabledTimeDb(java.lang.Long)

setRoleDisplayName

public void setRoleDisplayName(String roleDisplayName1)
Description copied from interface: PermissionEntry
display name of the role which the subject is in to have the permission

Specified by:
setRoleDisplayName in interface PermissionEntry
Parameters:
roleDisplayName1 - the roleDisplayName to set
See Also:
PermissionEntry.setRoleDisplayName(java.lang.String)

clone

public GrouperAPI clone()
Description copied from class: GrouperAPI
deep clone the fields in this object

Specified by:
clone in interface GrouperCloneable
Specified by:
clone in class GrouperAPI
Returns:
the clone of the object
See Also:
GrouperAPI.clone()

compareTo

public int compareTo(PermissionEntry o)
Specified by:
compareTo in interface Comparable<PermissionEntry>
See Also:
Comparable.compareTo(java.lang.Object)

getEndTime

public Timestamp getEndTime()
Description copied from interface: PermissionEntry
The end time for this permission entry. This is for point in time.

Specified by:
getEndTime in interface PermissionEntry
Returns:
end time
See Also:
PermissionEntry.getEndTime()

getStartTime

public Timestamp getStartTime()
Description copied from interface: PermissionEntry
The start time for this permission entry. This is for point in time.

Specified by:
getStartTime in interface PermissionEntry
Returns:
start time
See Also:
PermissionEntry.getStartTime()

getMembershipDepth

public int getMembershipDepth()
Description copied from interface: PermissionEntry
depth of memberships, 0 means immediate

Specified by:
getMembershipDepth in interface PermissionEntry
Returns:
depth
See Also:
PermissionEntry.getMembershipDepth()

setMembershipDepth

public void setMembershipDepth(int membershipDepth1)
Description copied from interface: PermissionEntry
depth of memberships, 0 means immediate

Specified by:
setMembershipDepth in interface PermissionEntry
See Also:
PermissionEntry.setMembershipDepth(int)

getRoleSetDepth

public int getRoleSetDepth()
Description copied from interface: PermissionEntry
depth of role hierarchy, 0 means immediate, -1 means no role set involved

Specified by:
getRoleSetDepth in interface PermissionEntry
Returns:
depth
See Also:
PermissionEntry.getRoleSetDepth()

getAttributeDefNameSetDepth

public int getAttributeDefNameSetDepth()
Description copied from interface: PermissionEntry
depth of attributeDefName set hierarchy, 0 means immediate

Specified by:
getAttributeDefNameSetDepth in interface PermissionEntry
Returns:
depth
See Also:
PermissionEntry.getAttributeDefNameSetDepth()

setAttributeDefNameSetDepth

public void setAttributeDefNameSetDepth(int attributeDefNameSetDepth1)
Description copied from interface: PermissionEntry
depth of attributeDefName set hierarchy, 0 means immediate

Specified by:
setAttributeDefNameSetDepth in interface PermissionEntry
See Also:
PermissionEntry.setAttributeDefNameSetDepth(int)

getAttributeAssignActionSetDepth

public int getAttributeAssignActionSetDepth()
Description copied from interface: PermissionEntry
depth of action hierarchy, 0 means immediate

Specified by:
getAttributeAssignActionSetDepth in interface PermissionEntry
Returns:
depth
See Also:
PermissionEntry.getAttributeAssignActionSetDepth()

setAttributeAssignActionSetDepth

public void setAttributeAssignActionSetDepth(int attributeAssignActionSetDepth1)
Description copied from interface: PermissionEntry
depth of action hierarchy, 0 means immediate

Specified by:
setAttributeAssignActionSetDepth in interface PermissionEntry
See Also:
PermissionEntry.setAttributeAssignActionSetDepth(int)

getRoleName

public String getRoleName()
Description copied from interface: PermissionEntry
role which has the permission or which the subject must be in to have the permission

Specified by:
getRoleName in interface PermissionEntry
Returns:
the roleName
See Also:
PermissionEntry.getRoleName()

setRoleName

public void setRoleName(String roleName1)
Description copied from interface: PermissionEntry
role which has the permission or which the subject must be in to have the permission

Specified by:
setRoleName in interface PermissionEntry
Parameters:
roleName1 - the roleName to set
See Also:
PermissionEntry.setRoleName(java.lang.String)

getSubjectSourceId

public String getSubjectSourceId()
Description copied from interface: PermissionEntry
source id of the subject which has the permissions

Specified by:
getSubjectSourceId in interface PermissionEntry
Returns:
the subjectSourceId
See Also:
PermissionEntry.getSubjectSourceId()

setSubjectSourceId

public void setSubjectSourceId(String subjectSourceId1)
Description copied from interface: PermissionEntry
source id of the subject which has the permissions

Specified by:
setSubjectSourceId in interface PermissionEntry
Parameters:
subjectSourceId1 - the subjectSourceId to set
See Also:
PermissionEntry.setSubjectSourceId(java.lang.String)

getSubjectId

public String getSubjectId()
Description copied from interface: PermissionEntry
subject id of the subject which has the permissions

Specified by:
getSubjectId in interface PermissionEntry
Returns:
the subjectId
See Also:
PermissionEntry.getSubjectId()

setSubjectId

public void setSubjectId(String subjectId1)
Description copied from interface: PermissionEntry
subject id of the subject which has the permissions

Specified by:
setSubjectId in interface PermissionEntry
Parameters:
subjectId1 - the subjectId to set
See Also:
PermissionEntry.setSubjectId(java.lang.String)

getAction

public String getAction()
Description copied from interface: PermissionEntry
action on the permission (e.g. read, write, assign (default), etc

Specified by:
getAction in interface PermissionEntry
Returns:
the action
See Also:
PermissionEntry.getAction()

setAction

public void setAction(String action1)
Description copied from interface: PermissionEntry
action on the permission (e.g. read, write, assign (default), etc

Specified by:
setAction in interface PermissionEntry
Parameters:
action1 - the action to set
See Also:
PermissionEntry.setAction(java.lang.String)

getAttributeDefNameName

public String getAttributeDefNameName()
Description copied from interface: PermissionEntry
name of the attribute def name which is the permission assigned to the role or subject

Specified by:
getAttributeDefNameName in interface PermissionEntry
Returns:
the attributeDefNameName
See Also:
PermissionEntry.getAttributeDefNameName()

setAttributeDefNameName

public void setAttributeDefNameName(String attributeDefNameName1)
Description copied from interface: PermissionEntry
name of the attribute def name which is the permission assigned to the role or subject

Specified by:
setAttributeDefNameName in interface PermissionEntry
Parameters:
attributeDefNameName1 - the attributeDefNameName to set
See Also:
PermissionEntry.setAttributeDefNameName(java.lang.String)

getActionId

public String getActionId()
Description copied from interface: PermissionEntry
action on the permission (e.g. read, write, assign (default), etc

Specified by:
getActionId in interface PermissionEntry
Returns:
action
See Also:
PermissionEntry.getActionId()

setActionId

public void setActionId(String actionId1)
Description copied from interface: PermissionEntry
action on the permission (e.g. read, write, assign (default), etc

Specified by:
setActionId in interface PermissionEntry
See Also:
PermissionEntry.setActionId(java.lang.String)

getRoleId

public String getRoleId()
Description copied from interface: PermissionEntry
id of the role which the subject is in to get the permission

Specified by:
getRoleId in interface PermissionEntry
Returns:
the roleId
See Also:
PermissionEntry.getRoleId()

setRoleId

public void setRoleId(String roleId1)
Description copied from interface: PermissionEntry
id of the role which the subject is in to get the permission

Specified by:
setRoleId in interface PermissionEntry
Parameters:
roleId1 - the roleId to set
See Also:
PermissionEntry.setRoleId(java.lang.String)

getAttributeDefId

public String getAttributeDefId()
Description copied from interface: PermissionEntry
id of the attributeDef

Specified by:
getAttributeDefId in interface PermissionEntry
Returns:
the attributeDefId
See Also:
PermissionEntry.getAttributeDefId()

setAttributeDefId

public void setAttributeDefId(String attributeDefId1)
Description copied from interface: PermissionEntry
id of the attributeDef

Specified by:
setAttributeDefId in interface PermissionEntry
Parameters:
attributeDefId1 - the attributeDefId to set
See Also:
PermissionEntry.setAttributeDefId(java.lang.String)

getMemberId

public String getMemberId()
Description copied from interface: PermissionEntry
id of the member that has the permission

Specified by:
getMemberId in interface PermissionEntry
Returns:
the memberId
See Also:
PermissionEntry.getMemberId()

setMemberId

public void setMemberId(String memberId1)
Description copied from interface: PermissionEntry
id of the member that has the permission

Specified by:
setMemberId in interface PermissionEntry
Parameters:
memberId1 - the memberId to set
See Also:
PermissionEntry.setMemberId(java.lang.String)

getAttributeDefNameId

public String getAttributeDefNameId()
Description copied from interface: PermissionEntry
id of the attribute def name which is the permission

Specified by:
getAttributeDefNameId in interface PermissionEntry
Returns:
the attributeDefNameId
See Also:
PermissionEntry.getAttributeDefNameId()

setAttributeDefNameId

public void setAttributeDefNameId(String attributeDefNameId1)
Description copied from interface: PermissionEntry
id of the attribute def name which is the permission

Specified by:
setAttributeDefNameId in interface PermissionEntry
Parameters:
attributeDefNameId1 - the attributeDefNameId to set
See Also:
PermissionEntry.setAttributeDefNameId(java.lang.String)

getMembershipId

public String getMembershipId()
Description copied from interface: PermissionEntry
id of the membership row

Specified by:
getMembershipId in interface PermissionEntry
Returns:
id of the membership row
See Also:
PermissionEntry.getMembershipId()

setMembershipId

public void setMembershipId(String membershipId1)
Description copied from interface: PermissionEntry
id of the membership row

Specified by:
setMembershipId in interface PermissionEntry
See Also:
PermissionEntry.setMembershipId(java.lang.String)

getAttributeAssignId

public String getAttributeAssignId()
Description copied from interface: PermissionEntry
id of the attribute assign row, either to the role, or to the role member pair

Specified by:
getAttributeAssignId in interface PermissionEntry
Returns:
id
See Also:
PermissionEntry.getAttributeAssignId()

setAttributeAssignId

public void setAttributeAssignId(String attributeAssignId1)
Description copied from interface: PermissionEntry
id of the attribute assign row, either to the role, or to the role member pair

Specified by:
setAttributeAssignId in interface PermissionEntry
See Also:
PermissionEntry.setAttributeAssignId(java.lang.String)

getPermissionTypeDb

public String getPermissionTypeDb()
Description copied from interface: PermissionEntry
type of permission, either assigned to role, or assigned to role and user combined: role_subject

Specified by:
getPermissionTypeDb in interface PermissionEntry
Returns:
type of permission
See Also:
PermissionEntry.getPermissionTypeDb()

setPermissionTypeDb

public void setPermissionTypeDb(String permissionTypeDb1)
Description copied from interface: PermissionEntry
type of permission, either assigned to role, or assigned to role and user combined: role_subject

Specified by:
setPermissionTypeDb in interface PermissionEntry
See Also:
PermissionEntry.setPermissionTypeDb(java.lang.String)

getPermissionType

public PermissionEntry.PermissionType getPermissionType()
Description copied from interface: PermissionEntry
type of permission, either assigned to role, or assigned to role and user combined: role_subject

Specified by:
getPermissionType in interface PermissionEntry
Returns:
permission type
See Also:
PermissionEntry.getPermissionType()

setAttributeAssignTypeDb

public void setAttributeAssignTypeDb(String theAttributeAssignTypeDb)
Parameters:
theAttributeAssignTypeDb -

getAttributeAssignTypeDb

public String getAttributeAssignTypeDb()
Returns:
attribute assign type

setRoleSetDepth

public void setRoleSetDepth(int roleSetDepth1)
Description copied from interface: PermissionEntry
depth of role hierarchy, 0 means immediate, -1 means no role set involved

Specified by:
setRoleSetDepth in interface PermissionEntry
See Also:
PermissionEntry.setRoleSetDepth(int)