org.jboss.seam.security.examples.idmconsole.model
Class IdentityPermission

java.lang.Object
  extended by org.jboss.seam.security.examples.idmconsole.model.IdentityPermission
All Implemented Interfaces:
Serializable

@Entity
public class IdentityPermission
extends Object
implements Serializable

This entity stores ACL permissions

Author:
Shane Bryzak
See Also:
Serialized Form

Constructor Summary
IdentityPermission()
           
 
Method Summary
 Long getId()
          Surrogate primary key value for the permission.
 IdentityObject getIdentityObject()
          Either the specific identity object for which this permission is granted, or in the case of a permission granted against a group, this property then represents the "to" side of the group relationship.
 String getPermission()
          The permission(s) granted for the resource.
 String getRelationshipName()
          If this permission is granted to a group of identities, then this property may be used to indicate the name for named relationships, such as role memberships.
 IdentityObjectRelationshipType getRelationshipType()
          If this permission is granted to a group of identities, then this property may be used to indicate the relationship type of the group membership.
 String getResource()
          The unique identifier for the resource for which permission is granted
 void setId(Long id)
           
 void setIdentityObject(IdentityObject identityObject)
           
 void setPermission(String permission)
           
 void setRelationshipName(String relationshipName)
           
 void setRelationshipType(IdentityObjectRelationshipType relationshipType)
           
 void setResource(String resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityPermission

public IdentityPermission()
Method Detail

getId

public Long getId()
Surrogate primary key value for the permission.

Returns:

setId

public void setId(Long id)

getIdentityObject

@NotNull
@PermissionProperty(value=IDENTITY)
public IdentityObject getIdentityObject()
Either the specific identity object for which this permission is granted, or in the case of a permission granted against a group, this property then represents the "to" side of the group relationship. Required field.

Returns:

setIdentityObject

public void setIdentityObject(IdentityObject identityObject)

getRelationshipType

@PermissionProperty(value=RELATIONSHIP_TYPE)
public IdentityObjectRelationshipType getRelationshipType()
If this permission is granted to a group of identities, then this property may be used to indicate the relationship type of the group membership. For example, a group or role relationship. It is possible that the permission may also be granted to identities that have *any* sort of membership within a group, in which case this property would be null.

Returns:

setRelationshipType

public void setRelationshipType(IdentityObjectRelationshipType relationshipType)

getRelationshipName

@PermissionProperty(value=RELATIONSHIP_NAME)
public String getRelationshipName()
If this permission is granted to a group of identities, then this property may be used to indicate the name for named relationships, such as role memberships.

Returns:

setRelationshipName

public void setRelationshipName(String relationshipName)

getResource

@PermissionProperty(value=RESOURCE)
public String getResource()
The unique identifier for the resource for which permission is granted

Returns:

setResource

public void setResource(String resource)

getPermission

@PermissionProperty(value=PERMISSION)
public String getPermission()
The permission(s) granted for the resource. May either be a comma-separated list of permission names (such as create, delete, etc) or a bit-masked integer value, in which each bit represents a different permission.

Returns:

setPermission

public void setPermission(String permission)


Copyright © 2011 Seam Framework. All Rights Reserved.