railo.commons.io.res.type.s3
Class AccessControl

java.lang.Object
  extended by railo.commons.io.res.type.s3.AccessControl

public class AccessControl
extends Object


Field Summary
static short TYPE_CANONICAL_USER
           
static short TYPE_EMAIL
           
static short TYPE_GROUP
           
 
Constructor Summary
AccessControl()
           
 
Method Summary
 String getDisplayName()
           
 String getEmail()
           
 String getId()
           
 String getPermission()
           
 short getType()
           
 String getUri()
           
static String groupToURI(Object oGroup)
           
 String hash()
           
 int hashCode()
           
 void setDisplayName(String displayName)
           
 void setEmail(String email)
           
 void setId(String id)
           
 void setPermission(String permission)
           
 void setType(short type)
           
 void setUri(String uri)
           
static AccessControl toAccessControl(Struct sct)
           
static List<AccessControl> toAccessControlList(Object objACL)
           
static String toPermission(Object oPermission)
           
 String toString()
           
static String toType(short type)
           
static String toType(short type, String defaultValue)
           
static short toType(String type)
           
static short toType(String type, short defaultValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_GROUP

public static final short TYPE_GROUP
See Also:
Constant Field Values

TYPE_EMAIL

public static final short TYPE_EMAIL
See Also:
Constant Field Values

TYPE_CANONICAL_USER

public static final short TYPE_CANONICAL_USER
See Also:
Constant Field Values
Constructor Detail

AccessControl

public AccessControl()
Method Detail

getType

public short getType()
Returns:
the type

setType

public void setType(short type)
Parameters:
type - the type to set

getId

public String getId()
Returns:
the id

setId

public void setId(String id)
Parameters:
id - the id to set

getDisplayName

public String getDisplayName()
Returns:
the displayName

setDisplayName

public void setDisplayName(String displayName)
Parameters:
displayName - the displayName to set

getPermission

public String getPermission()
Returns:
the permission

setPermission

public void setPermission(String permission)

getUri

public String getUri()
Returns:
the uri

setUri

public void setUri(String uri)
Parameters:
uri - the uri to set

getEmail

public String getEmail()
Returns:
the email

setEmail

public void setEmail(String email)
Parameters:
email - the email to set

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

hash

public String hash()

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toAccessControlList

public static List<AccessControl> toAccessControlList(Object objACL)
                                               throws S3Exception,
                                                      PageException
Throws:
S3Exception
PageException

toAccessControl

public static AccessControl toAccessControl(Struct sct)
                                     throws S3Exception,
                                            PageException
Throws:
S3Exception
PageException

toPermission

public static String toPermission(Object oPermission)
                           throws S3Exception
Throws:
S3Exception

groupToURI

public static String groupToURI(Object oGroup)
                         throws S3Exception
Throws:
S3Exception

toType

public static String toType(short type)
                     throws S3Exception
Throws:
S3Exception

toType

public static String toType(short type,
                            String defaultValue)

toType

public static short toType(String type)
                    throws S3Exception
Throws:
S3Exception

toType

public static short toType(String type,
                           short defaultValue)


Copyright © 2012 Railo