org.silverpeas.password.web
Class AbstractPasswordResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by org.silverpeas.password.web.AbstractPasswordResource
Direct Known Subclasses:
PasswordResource

public abstract class AbstractPasswordResource
extends RESTWebService

Author:
Yohann Chastagnier

Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService
RESTWebService.WebProcess<RETURN_VALUE>, RESTWebService.WebTreatment<RETURN_VALUE>
 
Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
AbstractPasswordResource()
           
 
Method Summary
protected  PasswordCheckEntity asWebEntity(PasswordCheck check)
          Converts the password check into its corresponding web entity.
protected  PasswordRuleEntity asWebEntity(PasswordRule rule)
          Converts the password rule into its corresponding web entity.
 String getComponentId()
          Gets the identifier of the component instance to which the requested resource belongs to.
protected  String getLanguage()
          Due to the particularity of this WEB Service according to authentication, the language is handled at this level.
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, getBundleLocation, getGreaterUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getUriInfo, getUserDetail, getUserPreferences, getUserRoles, process, validateUserAuthentication, validateUserAuthorization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPasswordResource

public AbstractPasswordResource()
Method Detail

getComponentId

public String getComponentId()
Description copied from class: RESTWebService
Gets the identifier of the component instance to which the requested resource belongs to.

Specified by:
getComponentId in class RESTWebService
Returns:
the identifier of the Silverpeas component instance.

asWebEntity

protected PasswordRuleEntity asWebEntity(PasswordRule rule)
Converts the password rule into its corresponding web entity.

Parameters:
rule - the password rule.
Returns:
the corresponding password rule entity.

asWebEntity

protected PasswordCheckEntity asWebEntity(PasswordCheck check)
Converts the password check into its corresponding web entity.

Parameters:
check - the password check.
Returns:
the corresponding password check entity.

getLanguage

protected String getLanguage()
Due to the particularity of this WEB Service according to authentication, the language is handled at this level.

Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.