fr.paris.lutece.plugins.document.business.spaces
Class DocumentSpace

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.spaces.DocumentSpace
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

public class DocumentSpace
extends java.lang.Object
implements fr.paris.lutece.portal.service.rbac.RBACResource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

A Space to store documents


Field Summary
static java.lang.String RESOURCE_TYPE
           
 
Constructor Summary
DocumentSpace()
           
 
Method Summary
 void addAllowedDocumentType(java.lang.String strDocumentType)
          Add allowed document
 java.lang.String[] getAllowedDocumentTypes()
          Returns allowed document types
 java.lang.String getDescription()
          Returns the Description
 java.lang.String getIconUrl()
          Returns the IconUrl
 int getId()
          Returns the IdSpace
 int getIdIcon()
          Returns the IdIcon
 int getIdParent()
          Returns the IdParent
 java.lang.String getName()
          Returns the Name
 java.lang.String getResourceId()
          Returns the resource Id of the current object
 java.lang.String getResourceTypeCode()
          Returns the Resource Type Code that identify the resource type
 java.lang.String getViewType()
          Returns the ViewType
 java.lang.String getWorkgroup()
           
 boolean isDocumentCreationAllowed()
          Returns whether or not Document Creation is Allowed for this space
 void resetAllowedDocumentTypesList()
          Reset allowed document types list
 void setDescription(java.lang.String strDescription)
          Sets the Description
 void setDocumentCreationAllowed(boolean bDocumentCreationAllowed)
          Sets whether or not Document Creation is Allowed for this space
 void setIconUrl(java.lang.String strIconUrl)
          Sets the IconUrl
 void setId(int nIdSpace)
          Sets the IdSpace
 void setIdIcon(int nIdIcon)
          Sets the IdIcon
 void setIdParent(int nIdParent)
          Sets the IdParent
 void setName(java.lang.String strName)
          Sets the Name
 void setViewType(java.lang.String strViewType)
          Sets the ViewType
 void setWorkgroup(java.lang.String workGroup)
          set the work group associate to the DocumentSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

public static final java.lang.String RESOURCE_TYPE
See Also:
Constant Field Values
Constructor Detail

DocumentSpace

public DocumentSpace()
Method Detail

getId

public int getId()
Returns the IdSpace

Returns:
The IdSpace

setId

public void setId(int nIdSpace)
Sets the IdSpace

Parameters:
nIdSpace - The IdSpace

getIdParent

public int getIdParent()
Returns the IdParent

Returns:
The IdParent

setIdParent

public void setIdParent(int nIdParent)
Sets the IdParent

Parameters:
nIdParent - The IdParent

getName

public java.lang.String getName()
Returns the Name

Returns:
The Name

setName

public void setName(java.lang.String strName)
Sets the Name

Parameters:
strName - The Name

getDescription

public java.lang.String getDescription()
Returns the Description

Returns:
The Description

setDescription

public void setDescription(java.lang.String strDescription)
Sets the Description

Parameters:
strDescription - The Description

getViewType

public java.lang.String getViewType()
Returns the ViewType

Returns:
The ViewType

setViewType

public void setViewType(java.lang.String strViewType)
Sets the ViewType

Parameters:
strViewType - The ViewType

getIdIcon

public int getIdIcon()
Returns the IdIcon

Returns:
The IdIcon

setIdIcon

public void setIdIcon(int nIdIcon)
Sets the IdIcon

Parameters:
nIdIcon - The IdIcon

getIconUrl

public java.lang.String getIconUrl()
Returns the IconUrl

Returns:
The IconUrl

setIconUrl

public void setIconUrl(java.lang.String strIconUrl)
Sets the IconUrl

Parameters:
strIconUrl - The IconUrl

isDocumentCreationAllowed

public boolean isDocumentCreationAllowed()
Returns whether or not Document Creation is Allowed for this space

Returns:
True if Document Creation is Allowed

setDocumentCreationAllowed

public void setDocumentCreationAllowed(boolean bDocumentCreationAllowed)
Sets whether or not Document Creation is Allowed for this space

Parameters:
bDocumentCreationAllowed - The DocumentCreationAllowed value

addAllowedDocumentType

public void addAllowedDocumentType(java.lang.String strDocumentType)
Add allowed document

Parameters:
strDocumentType - The document type to allow

resetAllowedDocumentTypesList

public void resetAllowedDocumentTypesList()
Reset allowed document types list


getAllowedDocumentTypes

public java.lang.String[] getAllowedDocumentTypes()
Returns allowed document types

Returns:
Allowed document types

getResourceTypeCode

public java.lang.String getResourceTypeCode()
Returns the Resource Type Code that identify the resource type

Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The Resource Type Code

getResourceId

public java.lang.String getResourceId()
Returns the resource Id of the current object

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The resource Id of the current object

getWorkgroup

public java.lang.String getWorkgroup()
Specified by:
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
Returns:
the work group associate to the DocumentSpace

setWorkgroup

public void setWorkgroup(java.lang.String workGroup)
set the work group associate to the DocumentSpace

Parameters:
workGroup - the work group associate to the DocumentSpace


Copyright © 2010 Mairie de Paris. All Rights Reserved.