fr.paris.lutece.plugins.jcr.business
Class JcrRepositoryWorkspaceImpl

java.lang.Object
  extended by fr.paris.lutece.plugins.jcr.business.JcrRepositoryWorkspaceImpl
All Implemented Interfaces:
IWorkspace, fr.paris.lutece.portal.service.rbac.RBACResource, fr.paris.lutece.portal.service.resource.Resource

public class JcrRepositoryWorkspaceImpl
extends Object
implements IWorkspace

Implementation of IWorkspace


Field Summary
 
Fields inherited from interface fr.paris.lutece.plugins.jcr.business.IWorkspace
AVAILABLE_ACCESS, READ_ACCESS, REMOVE_ACCESS, WRITE_ACCESS
 
Constructor Summary
JcrRepositoryWorkspaceImpl()
          Basic constructor
 
Method Summary
 String getId()
          Get the workspace id
 String getName()
          Get the workspace name
 String getResourceId()
           
 String getResourceTypeCode()
           
 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
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JcrRepositoryWorkspaceImpl

public JcrRepositoryWorkspaceImpl()
Basic constructor

Method Detail

getId

public String getId()
Description copied from interface: IWorkspace
Get the workspace id

Specified by:
getId in interface IWorkspace
Returns:
the id
See Also:
IWorkspace.getId()

getName

public String getName()
Description copied from interface: IWorkspace
Get the workspace name

Specified by:
getName in interface IWorkspace
Returns:
the name
See Also:
IWorkspace.getName()

getRoles

public String[] getRoles(String strAccessType)
Description copied from interface: IWorkspace
Get the roles associated with the given access type

Specified by:
getRoles in interface IWorkspace
Parameters:
strAccessType - an access type code
Returns:
all available roles for this access type
See Also:
IWorkspace.getRoles(java.lang.String)

setId

public void setId(String strId)
Description copied from interface: IWorkspace
Set the workspace id

Specified by:
setId in interface IWorkspace
Parameters:
strId - the id
See Also:
IWorkspace.setId(java.lang.String)

setName

public void setName(String strName)
Description copied from interface: IWorkspace
Set the workspace name

Specified by:
setName in interface IWorkspace
Parameters:
strName - the name
See Also:
IWorkspace.setName(java.lang.String)

setRoles

public void setRoles(String strAccessType,
                     String[] roles)
Description copied from interface: IWorkspace
Set the roles associated with the given access type

Specified by:
setRoles in interface IWorkspace
Parameters:
strAccessType - the access type code
roles - an array of roles
See Also:
IWorkspace.setRoles(java.lang.String, java.lang.String[])

getResourceId

public String getResourceId()
Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
the resource id
See Also:
RBACResource.getResourceId()

getResourceTypeCode

public String getResourceTypeCode()
Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
a resource type code
See Also:
RBACResource.getResourceTypeCode()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Mairie de Paris. All Rights Reserved.