[jboss-cvs] jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Oct 25 05:46:18 EDT 2006
User: sbryzak2
Date: 06/10/25 05:46:18
Added: examples/seamspace/src/org/jboss/seam/example/seamspace
AclObjectIdentity.java AclPermission.java
Log:
ongoing work
Revision Changes Path
1.1 date: 2006/10/25 09:46:18; author: sbryzak2; state: Exp;jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace/AclObjectIdentity.java
Index: AclObjectIdentity.java
===================================================================
package org.jboss.seam.example.seamspace;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* Identifies a persistent object for the purpose of defining an Acl for it
*
* @author Shane Bryzak
*/
@Entity
public class AclObjectIdentity implements Serializable
{
private Integer id;
private String objectIdentity;
@Id
public Integer getId()
{
return id;
}
public void setId(Integer id)
{
this.id = id;
}
public String getObjectIdentity()
{
return objectIdentity;
}
public void setObjectIdentity(String objectIdentity)
{
this.objectIdentity = objectIdentity;
}
}
1.1 date: 2006/10/25 09:46:18; author: sbryzak2; state: Exp;jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace/AclPermission.java
Index: AclPermission.java
===================================================================
package org.jboss.seam.example.seamspace;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
/**
* Defines permissions for an object
*
* @author Shane Bryzak
*/
@Entity
public class AclPermission implements Serializable
{
public enum RecipientType {role, user};
private Integer id;
private AclObjectIdentity identity;
private RecipientType recipientType;
private String recipient;
private int mask;
@Id
public Integer getId()
{
return id;
}
public void setId(Integer id)
{
this.id = id;
}
@ManyToOne
public AclObjectIdentity getIdentity()
{
return identity;
}
public void setIdentity(AclObjectIdentity identity)
{
this.identity = identity;
}
public RecipientType getRecipientType()
{
return recipientType;
}
public void setRecipientType(RecipientType recipientType)
{
this.recipientType = recipientType;
}
public String getRecipient()
{
return recipient;
}
public void setRecipient(String recipient)
{
this.recipient = recipient;
}
public int getMask()
{
return mask;
}
public void setMask(int mask)
{
this.mask = mask;
}
}
More information about the jboss-cvs-commits
mailing list