fr.cnes.sitools.security.authorization.client
Class ResourceAuthorization

java.lang.Object
  extended by fr.cnes.sitools.security.authorization.client.ResourceAuthorization
All Implemented Interfaces:
IResource, java.io.Serializable

public final class ResourceAuthorization
extends java.lang.Object
implements java.io.Serializable, IResource

TODO renommer package ou classes en dto

Author:
jp.boignard (AKKA Technologies)
See Also:
Serialized Form

Constructor Summary
ResourceAuthorization()
          Default constructor
 
Method Summary
 java.util.ArrayList<RoleAndMethodsAuthorization> getAuthorizations()
          Gets the authorizations value
 java.lang.String getDescription()
          Gets the description value
 java.lang.String getId()
          Gets the id value
 java.lang.String getName()
          Gets the name value
 java.lang.String getRefId()
          Gets the refId value
 java.lang.String getType()
          Gets the type value
 java.lang.String getUrl()
          Gets the url value
 void setAuthorizations(java.util.ArrayList<RoleAndMethodsAuthorization> authorizations)
          Sets the value of authorizations
 void setDescription(java.lang.String description)
          Sets the value of description
 void setId(java.lang.String id)
          Sets the value of id
 void setName(java.lang.String name)
          Sets the value of name
 void setRefId(java.lang.String refId)
          Sets the value of refId
 void setType(java.lang.String type)
          Sets the value of type
 void setUrl(java.lang.String url)
          Sets the value of url
 DelegatedAuthorizer wrap(org.restlet.Application application)
          Wrap security configuration to Authorizer
 DelegatedAuthorizer wrap(java.util.Map<java.lang.String,org.restlet.security.Role> reference, org.restlet.Application application)
          Wrap security configuration to Authorizer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAuthorization

public ResourceAuthorization()
Default constructor

Method Detail

getAuthorizations

public java.util.ArrayList<RoleAndMethodsAuthorization> getAuthorizations()
Gets the authorizations value

Returns:
the authorizations

setAuthorizations

public void setAuthorizations(java.util.ArrayList<RoleAndMethodsAuthorization> authorizations)
Sets the value of authorizations

Parameters:
authorizations - the authorizations to set

getId

public java.lang.String getId()
Gets the id value

Specified by:
getId in interface IResource
Returns:
the id

setId

public void setId(java.lang.String id)
Sets the value of id

Specified by:
setId in interface IResource
Parameters:
id - the id to set

getRefId

public java.lang.String getRefId()
Gets the refId value

Returns:
the refId

setRefId

public void setRefId(java.lang.String refId)
Sets the value of refId

Parameters:
refId - the refId to set

getName

public java.lang.String getName()
Gets the name value

Specified by:
getName in interface IResource
Returns:
the name

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
name - the name to set

getType

public java.lang.String getType()
Gets the type value

Returns:
the type

setType

public void setType(java.lang.String type)
Sets the value of type

Parameters:
type - the type to set

getDescription

public java.lang.String getDescription()
Gets the description value

Specified by:
getDescription in interface IResource
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the value of description

Parameters:
description - the description to set

getUrl

public java.lang.String getUrl()
Gets the url value

Returns:
the url

setUrl

public void setUrl(java.lang.String url)
Sets the value of url

Parameters:
url - the url to set

wrap

public DelegatedAuthorizer wrap(org.restlet.Application application)
Wrap security configuration to Authorizer

Parameters:
application - the application to check
Returns:
Authorizer

wrap

public DelegatedAuthorizer wrap(java.util.Map<java.lang.String,org.restlet.security.Role> reference,
                                org.restlet.Application application)
Wrap security configuration to Authorizer

Parameters:
reference - Map
application - Application parent of the authorizer (can be null)
Returns:
Authorizer


Copyright © 2010-2013 CNES. All Rights Reserved.