fr.paris.lutece.plugins.jcr.business
Interface IWorkspace

All Superinterfaces:
fr.paris.lutece.portal.service.rbac.RBACResource, fr.paris.lutece.portal.service.resource.Resource
All Known Implementing Classes:
JcrRepositoryWorkspaceImpl

public interface IWorkspace
extends fr.paris.lutece.portal.service.resource.Resource, fr.paris.lutece.portal.service.rbac.RBACResource

the interface for workspace


Field Summary
static String[] AVAILABLE_ACCESS
          Array containing all access modes
static String READ_ACCESS
          Constant for read access mode
static String REMOVE_ACCESS
          Constant for remove access mode
static String WRITE_ACCESS
          Constant for write access mode
 
Method Summary
 String getId()
          Get the workspace id
 String getName()
          Get the workspace name
 String[] getRoles(String strAccessType)
          Get the roles associated with the given access type
 void setId(String strId)
          Set the workspace id
 void setName(String strName)
          Set the workspace name
 void setRoles(String strAccessType, String[] roles)
          Set the roles associated with the given access type
 
Methods inherited from interface fr.paris.lutece.portal.service.rbac.RBACResource
getResourceId, getResourceTypeCode
 

Field Detail

READ_ACCESS

static final String READ_ACCESS
Constant for read access mode

See Also:
Constant Field Values

WRITE_ACCESS

static final String WRITE_ACCESS
Constant for write access mode

See Also:
Constant Field Values

REMOVE_ACCESS

static final String REMOVE_ACCESS
Constant for remove access mode

See Also:
Constant Field Values

AVAILABLE_ACCESS

static final String[] AVAILABLE_ACCESS
Array containing all access modes

Method Detail

getRoles

String[] getRoles(String strAccessType)
Get the roles associated with the given access type

Parameters:
strAccessType - the access type which must be in array AVAILABLE_ACCESS
Returns:
an array of roles

setRoles

void setRoles(String strAccessType,
              String[] roles)
Set the roles associated with the given access type

Parameters:
strAccessType - the access type which must be in array AVAILABLE_ACCESS
roles - an array of roles

getName

String getName()
Get the workspace name

Returns:
the workspace name

setName

void setName(String strName)
Set the workspace name

Parameters:
strName - the workspace name

getId

String getId()
Get the workspace id

Returns:
the id

setId

void setId(String strId)
Set the workspace id

Parameters:
strId - the id


Copyright © 2014 Mairie de Paris. All Rights Reserved.