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

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

public class JcrRepositoryWorkspaceImpl
extends java.lang.Object
implements IWorkspace


Field Summary
 
Fields inherited from interface fr.paris.lutece.plugins.jsr170.business.IWorkspace
AVAILABLE_ACCESS, READ_ACCESS, REMOVE_ACCESS, WRITE_ACCESS
 
Constructor Summary
JcrRepositoryWorkspaceImpl()
           
 
Method Summary
 java.lang.String getId()
          Get the workspace id
 java.lang.String getName()
          Get the workspace name
 java.lang.String getResourceId()
           
 java.lang.String getResourceTypeCode()
           
 java.lang.String[] getRoles(java.lang.String strAccessType)
          Get the roles associated with the given access type
 void setId(java.lang.String strId)
          Set the workspace id
 void setName(java.lang.String strName)
          Set the workspace name
 void setRoles(java.lang.String strAccessType, java.lang.String[] roles)
          Set the roles associated with the given access type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrRepositoryWorkspaceImpl

public JcrRepositoryWorkspaceImpl()
Method Detail

getId

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

Specified by:
getId in interface IWorkspace
Returns:
the id

getName

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

Specified by:
getName in interface IWorkspace
Returns:
the workspace name

getRoles

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

Specified by:
getRoles in interface IWorkspace
Parameters:
strAccessType - the access type which must be in array AVAILABLE_ACCESS
Returns:
an array of roles

setId

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

Specified by:
setId in interface IWorkspace

setName

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

Specified by:
setName in interface IWorkspace
Parameters:
strName - the workspace name

setRoles

public void setRoles(java.lang.String strAccessType,
                     java.lang.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 which must be in array AVAILABLE_ACCESS
roles - an array of roles

getResourceId

public java.lang.String getResourceId()
Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource

getResourceTypeCode

public java.lang.String getResourceTypeCode()
Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource


Copyright © 2007 Mairie de Paris. All Rights Reserved.