|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectExtendedWadlApplication
fr.cnes.sitools.common.application.SitoolsApplication
public abstract class SitoolsApplication
Root abstract class for SITools applications.
Constructor Summary | |
---|---|
SitoolsApplication()
Default constructor. |
|
SitoolsApplication(org.restlet.Context context)
Constructor with context. |
|
SitoolsApplication(org.restlet.Context arg0,
org.restlet.representation.Representation arg1)
Constructor with context and representation of the application configuration. |
Method Summary | |
---|---|
org.restlet.Restlet |
addSecurity(org.restlet.Restlet restlet,
java.lang.String userRequestAttribute,
java.util.List<org.restlet.data.Method> methodsForPublic)
Authorization management with URI ... |
org.restlet.Restlet |
addSecurity(SitoolsApplication application)
Setting security. |
org.restlet.Restlet |
addSecurityFilter(org.restlet.Context context,
org.restlet.Restlet restlet)
Add Security filter in front of the Restlet |
void |
defaultDescribe()
Default description. |
org.restlet.ext.wadl.ApplicationInfo |
getApplicationInfo(org.restlet.Request request,
org.restlet.Response response)
|
java.lang.String |
getAttachementRef()
Gets the attachementRef value |
SitoolsRealm |
getAuthenticationRealm()
Get authentication Realm |
org.restlet.security.Authorizer |
getAuthorizer()
Gets the authorizer value |
DelegatedAuthorizer |
getAuthorizer(org.restlet.Context context,
java.util.concurrent.ConcurrentHashMap<java.lang.String,org.restlet.security.Role> reference)
Gets authorizer for an application. |
DelegatedAuthorizer |
getAuthorizer(java.lang.String objectUUID)
Gets authorizer for an object in context application. |
Category |
getCategory()
Gets the category value |
java.lang.String |
getId()
Gets the id value. |
java.lang.String |
getPublicBaseRef(org.restlet.Request request)
Gets the publicBaseRef value |
java.util.ArrayList<java.lang.String> |
getRepresentationInfoReferences()
Method to get the list of representation info references |
org.restlet.Restlet |
getSecure()
Get the secured application by default |
SitoolsSettings |
getSettings()
Gets the settings value |
SitoolsApplicationInfo |
getSitoolsApplicationInfo()
Gets the sitoolsApplicationInfo value |
java.lang.String |
getType()
Gets the type value |
org.restlet.security.Authorizer |
getUserAuthorizer(org.restlet.Context context,
java.util.concurrent.ConcurrentHashMap<java.lang.String,org.restlet.security.Role> reference,
java.lang.String userRequestAttribute,
org.restlet.Application application,
java.util.List<org.restlet.data.Method> methodsForPublic)
Gets authorizer for an application. |
boolean |
isAuthorizationSecure()
Gets the authorizationSecure value. |
boolean |
isUserAuthenticationNeeded()
Gets the isUserAuthenticationNeeded value |
void |
register()
Application registration. |
void |
setAutoRegistration(boolean autoRegister)
Set the fact that the application is auto registering |
void |
setCategory(Category category)
Sets the value of category |
void |
setId(java.lang.String idd)
Sets the value of id. |
void |
setSitoolsApplicationInfo(SitoolsApplicationInfo sitoolsApplicationInfo)
Sets the value of sitoolsApplicationInfo |
void |
setType(java.lang.String type)
Sets the value of type |
void |
setUserAuthenticationNeeded(boolean isUserAuthenticationNeeded)
Sets the value of isUserAuthenticationNeeded |
abstract void |
sitoolsDescribe()
Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality. |
void |
start()
|
void |
stop()
|
void |
unregister()
Application registration. |
Resource |
wrapToResource()
Resource Representation of the application. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SitoolsApplication()
public SitoolsApplication(org.restlet.Context context)
context
- Restlet host contextpublic SitoolsApplication(org.restlet.Context arg0, org.restlet.representation.Representation arg1)
arg0
- Restlet contextarg1
- wadl representationMethod Detail |
---|
public abstract void sitoolsDescribe()
public final void defaultDescribe()
public final void register()
public final void unregister()
public final DelegatedAuthorizer getAuthorizer(java.lang.String objectUUID)
objectUUID
- unique identifier for object
public final DelegatedAuthorizer getAuthorizer(org.restlet.Context context, java.util.concurrent.ConcurrentHashMap<java.lang.String,org.restlet.security.Role> reference)
context
- RESTlet application contextreference
- ConcurrentHashMap of Role objects to be used in the Authorizer.
public final org.restlet.Restlet addSecurity(org.restlet.Restlet restlet, java.lang.String userRequestAttribute, java.util.List<org.restlet.data.Method> methodsForPublic)
restlet
- internal routeruserRequestAttribute
- user request attributemethodsForPublic
- the List of methods allowed for public user
public final org.restlet.security.Authorizer getUserAuthorizer(org.restlet.Context context, java.util.concurrent.ConcurrentHashMap<java.lang.String,org.restlet.security.Role> reference, java.lang.String userRequestAttribute, org.restlet.Application application, java.util.List<org.restlet.data.Method> methodsForPublic)
application
- the applicationcontext
- RESTlet application contextreference
- ConcurrentHashMap of Role objects to be used in the Authorizer.userRequestAttribute
- user request attributemethodsForPublic
- the List of methods allowed for public user
public void start() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
public final java.lang.String getAttachementRef()
public final java.lang.String getPublicBaseRef(org.restlet.Request request)
request
- the request sent
public final Resource wrapToResource()
public final org.restlet.Restlet addSecurityFilter(org.restlet.Context context, org.restlet.Restlet restlet)
context
- Restlet contextrestlet
- Restlet to be secured
public final org.restlet.Restlet addSecurity(SitoolsApplication application)
application
- Application router to be attached with the authenticator/authorizer
public org.restlet.Restlet getSecure()
public final boolean isAuthorizationSecure()
public final java.lang.String getId()
public final void setId(java.lang.String idd)
idd
- the id to setpublic final org.restlet.security.Authorizer getAuthorizer()
public final java.lang.String getType()
public final void setType(java.lang.String type)
type
- the type to setpublic final Category getCategory()
public final void setCategory(Category category)
category
- the category to setpublic final SitoolsSettings getSettings()
public final SitoolsApplicationInfo getSitoolsApplicationInfo()
public final void setAutoRegistration(boolean autoRegister)
autoRegister
- true to set that the application is autoRegisteringpublic final SitoolsRealm getAuthenticationRealm()
public final void setSitoolsApplicationInfo(SitoolsApplicationInfo sitoolsApplicationInfo)
sitoolsApplicationInfo
- the sitoolsApplicationInfo to setpublic org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request, org.restlet.Response response)
public final java.util.ArrayList<java.lang.String> getRepresentationInfoReferences()
public boolean isUserAuthenticationNeeded()
public void setUserAuthenticationNeeded(boolean isUserAuthenticationNeeded)
isUserAuthenticationNeeded
- the isUserAuthenticationNeeded to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |