Class DocumentSpace
- java.lang.Object
-
- 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 Object implements fr.paris.lutece.portal.service.rbac.RBACResource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
A Space to store documents
-
-
Field Summary
Fields Modifier and Type Field Description static StringRESOURCE_TYPE
-
Constructor Summary
Constructors Constructor Description DocumentSpace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllowedDocumentType(String strDocumentType)Add allowed documentString[]getAllowedDocumentTypes()Returns allowed document typesStringgetDescription()Returns the DescriptionStringgetIconUrl()Returns the IconUrlintgetId()Returns the IdSpaceintgetIdIcon()Returns the IdIconintgetIdParent()Returns the IdParentStringgetName()Returns the NameStringgetResourceId()Returns the resource Id of the current objectStringgetResourceTypeCode()Returns the Resource Type Code that identify the resource typeStringgetViewType()Returns the ViewTypeStringgetWorkgroup()booleanisDocumentCreationAllowed()Returns whether or not Document Creation is Allowed for this spacevoidresetAllowedDocumentTypesList()Reset allowed document types listvoidsetDescription(String strDescription)Sets the DescriptionvoidsetDocumentCreationAllowed(boolean bDocumentCreationAllowed)Sets whether or not Document Creation is Allowed for this spacevoidsetIconUrl(String strIconUrl)Sets the IconUrlvoidsetId(int nIdSpace)Sets the IdSpacevoidsetIdIcon(int nIdIcon)Sets the IdIconvoidsetIdParent(int nIdParent)Sets the IdParentvoidsetName(String strName)Sets the NamevoidsetViewType(String strViewType)Sets the ViewTypevoidsetWorkgroup(String workGroup)set the work group associate to the DocumentSpace
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
-
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 String getName()
Returns the Name- Returns:
- The Name
-
setName
public void setName(String strName)
Sets the Name- Parameters:
strName- The Name
-
getDescription
public String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(String strDescription)
Sets the Description- Parameters:
strDescription- The Description
-
getViewType
public String getViewType()
Returns the ViewType- Returns:
- The ViewType
-
setViewType
public void setViewType(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 String getIconUrl()
Returns the IconUrl- Returns:
- The IconUrl
-
setIconUrl
public void setIconUrl(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(String strDocumentType)
Add allowed document- Parameters:
strDocumentType- The document type to allow
-
resetAllowedDocumentTypesList
public void resetAllowedDocumentTypesList()
Reset allowed document types list
-
getAllowedDocumentTypes
public String[] getAllowedDocumentTypes()
Returns allowed document types- Returns:
- Allowed document types
-
getResourceTypeCode
public String getResourceTypeCode()
Returns the Resource Type Code that identify the resource type- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The Resource Type Code
-
getResourceId
public String getResourceId()
Returns the resource Id of the current object- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The resource Id of the current object
-
getWorkgroup
public String getWorkgroup()
- Specified by:
getWorkgroupin interfacefr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource- Returns:
- the work group associate to the DocumentSpace
-
setWorkgroup
public void setWorkgroup(String workGroup)
set the work group associate to the DocumentSpace- Parameters:
workGroup- the work group associate to the DocumentSpace
-
-