All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.picketlink.permission.Permission Maven / Gradle / Ivy

There is a newer version: 3.0.0.Beta2
Show newest version
package org.picketlink.permission;

import org.picketlink.idm.model.IdentityType;

/**
 * Represents a specific permission grant for a domain object 
 * 
 * @author Shane Bryzak
 *
 */
public class Permission
{
    private Object resource;
    private IdentityType recipient;
    private String permission;
    
    public Permission(Object resource, IdentityType recipient, String permission)
    {
        this.resource = resource;
        this.recipient = recipient;
        this.permission = permission;
    }
    
    public Object getResource()
    {
        return resource;
    }
    
    public IdentityType getRecipient()
    {
        return recipient;        
    }
    
    public String getPermission()
    {
        return permission;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy