|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.document.service.spaces.DocumentSpacesService
public class DocumentSpacesService
Document Spaces management Service.
| Field Summary | |
|---|---|
static String |
PARAMETER_BROWSER_SELECTED_SPACE_ID
|
| Method Summary | |
|---|---|
static DocumentSpacesService |
getInstance()
Returns the unique instance of the service |
String |
getLabelSpacePath(int nIdDocumentSpace,
fr.paris.lutece.portal.business.user.AdminUser user)
the path of the document space |
String |
getSpacesBrowser(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale,
boolean bFilterViewRollUser,
boolean bFilterWorkspaceUser)
get the HTML code to display a space browser. |
Source |
getTreeXsl()
Gets the XSL to display user spaces tree |
List<DocumentSpace> |
getUserAllowedSpaces(fr.paris.lutece.portal.business.user.AdminUser user)
Get the list of spaces allowed for a given user |
int |
getUserDefaultSpace(fr.paris.lutece.portal.business.user.AdminUser user)
Gets user default space |
String |
getXmlSpacesList(fr.paris.lutece.portal.business.user.AdminUser user)
Gets allowed Spaces for a given user as an XML document |
String |
getXmlSpacesList(fr.paris.lutece.portal.business.user.AdminUser user,
String strCodeType)
Gets allowed Spaces for a given user and a type of document as an XML document |
boolean |
isAuthorizedViewByRole(int nIdSpace,
fr.paris.lutece.portal.business.user.AdminUser user)
Check if the user can view a space according its role |
boolean |
isAuthorizedViewByWorkgroup(int nIdSpace,
fr.paris.lutece.portal.business.user.AdminUser user)
Check if a space should be visible to the user according its workgroup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARAMETER_BROWSER_SELECTED_SPACE_ID
| Method Detail |
|---|
public static DocumentSpacesService getInstance()
public String getXmlSpacesList(fr.paris.lutece.portal.business.user.AdminUser user)
user - The current user
public String getXmlSpacesList(fr.paris.lutece.portal.business.user.AdminUser user,
String strCodeType)
user - The current userstrCodeType - The code for the document type
public int getUserDefaultSpace(fr.paris.lutece.portal.business.user.AdminUser user)
user - The current user
public Source getTreeXsl()
public boolean isAuthorizedViewByRole(int nIdSpace,
fr.paris.lutece.portal.business.user.AdminUser user)
nIdSpace - The Space Iduser - The current user
public boolean isAuthorizedViewByWorkgroup(int nIdSpace,
fr.paris.lutece.portal.business.user.AdminUser user)
nIdSpace - the id of the space to checkuser - The current user
public List<DocumentSpace> getUserAllowedSpaces(fr.paris.lutece.portal.business.user.AdminUser user)
user - The admin user
public String getSpacesBrowser(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale,
boolean bFilterViewRollUser,
boolean bFilterWorkspaceUser)
request - The HTTP requestuser - The current userbFilterViewRollUser - true if the list of childs space must be
filter by RBAC view permissionbFilterWorkspaceUser - true if the list of childs space must be
filter by workgrouplocale - The Locale
public String getLabelSpacePath(int nIdDocumentSpace,
fr.paris.lutece.portal.business.user.AdminUser user)
nIdDocumentSpace - the id of the document spaceuser - the user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||