|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.util.i18n.AbstractI18NBean<SpaceI18N>
com.stratelia.webactiv.beans.admin.SpaceInst
public class SpaceInst
The class SpaceInst is the representation in memory of a space
Field Summary | |
---|---|
static String |
DEFAULT_SPACE_ID
|
static int |
FP_TYPE_COMPONENT_INST
|
static int |
FP_TYPE_HTML_PAGE
|
static int |
FP_TYPE_PORTLET
|
static int |
FP_TYPE_STANDARD
|
static String |
PERSONAL_SPACE_ID
|
static String |
STATUS_REMOVED
|
Constructor Summary | |
---|---|
SpaceInst()
Constructor |
Method Summary | |
---|---|
void |
addComponentInst(ComponentInst componentInst)
Add a component in component list (WARNING : component will not be added in database, only in that spaceInst object !!!) |
void |
addSpaceProfileInst(SpaceProfileInst spaceProfileInst)
Add a space profile in space profile list (WARNING : space profile will not be added in database, only in that spaceInst object !!!) |
SpaceInst |
clone()
|
int |
compareTo(SpaceInst o)
|
void |
deleteComponentInst(ComponentInst componentInst)
Remove a component from component list (WARNING : component will not be removed from database, only in that spaceInst object !!!) |
void |
deleteSpaceProfileInst(SpaceProfileInst spaceProfileInst)
Remove a space profile from space profile list (WARNING : space profile will not be removed from database, only from that spaceInst object !!!) |
boolean |
equals(Object obj)
|
ArrayList<ComponentInst> |
getAllComponentsInst()
Get all the components in that space |
ArrayList<SpaceProfileInst> |
getAllSpaceProfilesInst()
Get all the space profiles from space profile list |
ComponentInst |
getComponentInst(int nIndex)
Get a component from component list, given its name (WARNING : if more than one component instance match the given name, the first one will be returned) |
ComponentInst |
getComponentInst(String componentName)
Add a component in component list (WARNING : component will not be added in database, only in that spaceInst object !!!) |
Quota |
getComponentSpaceQuota()
|
String |
getComponentSpaceQuotaReachedErrorMessage(String language)
Gets the error message about component space quota reached. |
Date |
getCreateDate()
|
UserDetail |
getCreator()
|
String |
getCreatorUserId()
Get the space creator id |
Quota |
getDataStorageQuota()
|
String |
getDataStorageQuotaReachedErrorMessage(String language)
Gets the error message about data storage space quota reached. |
String |
getDomainFatherId()
Get the domain father id |
String |
getFirstPageExtraParam()
Get the space first page extra parameter |
int |
getFirstPageType()
Get the space first page type |
String |
getId()
Get the space id |
List<SpaceProfileInst> |
getInheritedProfiles()
|
SpaceProfileInst |
getInheritedSpaceProfileInst(String sSpaceProfileName)
|
int |
getLevel()
|
String |
getLook()
|
String |
getName(String language)
Gets the name of the bean from the given language |
int |
getNumComponentInst()
Get the number of components in that space |
int |
getNumSpaceProfileInst()
Get the number of space profiles in that space |
int |
getOrderNum()
Get the space relative order num |
List<SpaceProfileInst> |
getProfiles()
|
Date |
getRemoveDate()
|
UserDetail |
getRemover()
|
String |
getRemoverUserId()
|
SpaceProfileInst |
getSpaceProfileInst(int nIndex)
Get a space profile from space profiles list, given its name (WARNING : if more than one space profile match the given name, the first one will be returned) |
SpaceProfileInst |
getSpaceProfileInst(String sSpaceProfileName)
Get a space profile from space profiles list, given its name (WARNING : if more than one space profile match the given name, the first one will be returned) |
String |
getStatus()
|
String[] |
getSubSpaceIds()
Get the list of children space ids |
Date |
getUpdateDate()
|
UserDetail |
getUpdater()
|
String |
getUpdaterUserId()
|
int |
hashCode()
|
boolean |
isComponentSpaceQuotaReached()
Indicates if the quota of the space or of a parent space is reached. |
boolean |
isDataStorageQuotaReached()
Indicates if the quota of the space or of a parent space is reached. |
boolean |
isDisplaySpaceFirst()
|
boolean |
isInheritanceBlocked()
|
boolean |
isPersonalSpace()
|
boolean |
isRoot()
|
void |
removeAllComponentsInst()
Remove all components from component list (WARNING : components will not be removed from database, only in that spaceInst object !!!) |
void |
removeAllSpaceProfilesInst()
Remove all space profiles from space profiles list (WARNING : space profiles will not be removed from database, only from that spaceInst object !!!) |
void |
removeInheritedProfiles()
|
void |
setComponentSpaceQuotaMaxCount(long componentSpaceQuotaMaxCount)
Sets the max count of component space of the space |
void |
setCreateDate(Date createDate)
|
void |
setCreator(UserDetail creator)
|
void |
setCreatorUserId(String sCreatorUserId)
Set the space creator id |
void |
setDataStorageQuotaMaxCount(long dataStorageQuotaMaxCount)
Sets the max count of data storage of the space |
void |
setDisplaySpaceFirst(boolean isDisplaySpaceFirst)
|
void |
setDomainFatherId(String sDomainFatherId)
Set the space father id |
void |
setFirstPageExtraParam(String sFirstPageExtraParam)
Set the space first page extra parameter |
void |
setFirstPageType(int iFirstPageType)
Set the space first page type |
void |
setId(String sId)
Set the space id |
void |
setInheritanceBlocked(boolean isInheritanceBlocked)
|
void |
setLevel(int level)
|
void |
setLook(String look)
|
void |
setOrderNum(int iOrderNum)
Set the space relative order num |
void |
setPersonalSpace(boolean isPersonalSpace)
|
void |
setRemoveDate(Date removeDate)
|
void |
setRemover(UserDetail remover)
|
void |
setRemoverUserId(String removerUserId)
|
void |
setStatus(String status)
|
void |
setSubSpaceIds(String[] asSubSpaceIds)
Set the list of children space ids |
void |
setUpdateDate(Date updateDate)
|
void |
setUpdater(UserDetail updater)
|
void |
setUpdaterUserId(String updaterUserId)
|
Methods inherited from class com.silverpeas.util.i18n.AbstractI18NBean |
---|
addTranslation, getClonedTranslations, getDescription, getDescription, getLanguage, getLanguages, getLanguageToDisplay, getName, getNextTranslation, getTranslation, getTranslationId, getTranslations, isRemoveTranslation, setDescription, setLanguage, setName, setRemoveTranslation, setTranslationId, setTranslations, setTranslations, setTranslations |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PERSONAL_SPACE_ID
public static final String DEFAULT_SPACE_ID
public static final int FP_TYPE_STANDARD
public static final int FP_TYPE_COMPONENT_INST
public static final int FP_TYPE_PORTLET
public static final int FP_TYPE_HTML_PAGE
public static final String STATUS_REMOVED
Constructor Detail |
---|
public SpaceInst()
Method Detail |
---|
public int compareTo(SpaceInst o)
compareTo
in interface Comparable<SpaceInst>
public void setId(String sId)
sId
- new space idpublic String getId()
public void setDomainFatherId(String sDomainFatherId)
sDomainFatherId
- The space father idpublic String getDomainFatherId()
public String getName(String language)
AbstractI18NBean
getName
in class AbstractI18NBean<SpaceI18N>
public void setCreatorUserId(String sCreatorUserId)
sCreatorUserId
- The user id of person who created the spacepublic String getCreatorUserId()
public void setFirstPageType(int iFirstPageType)
iFirstPageType
- public int getFirstPageType()
public void setOrderNum(int iOrderNum)
iOrderNum
- public int getOrderNum()
public void setFirstPageExtraParam(String sFirstPageExtraParam)
sFirstPageExtraParam
- public String getFirstPageExtraParam()
public void setSubSpaceIds(String[] asSubSpaceIds)
asSubSpaceIds
- Array of String containing all the children space idspublic String[] getSubSpaceIds()
public int getNumComponentInst()
public void addComponentInst(ComponentInst componentInst)
componentInst
- component instance to be addedpublic void deleteComponentInst(ComponentInst componentInst)
componentInst
- component instance to be removedpublic ArrayList<ComponentInst> getAllComponentsInst()
public void removeAllComponentsInst()
public ComponentInst getComponentInst(String componentName)
componentName
- component instance to be addedpublic ComponentInst getComponentInst(int nIndex)
nIndex
-
public int getNumSpaceProfileInst()
public void addSpaceProfileInst(SpaceProfileInst spaceProfileInst)
spaceProfileInst
- space profile to be addedpublic void deleteSpaceProfileInst(SpaceProfileInst spaceProfileInst)
spaceProfileInst
- space profile to be removedpublic ArrayList<SpaceProfileInst> getAllSpaceProfilesInst()
public void removeAllSpaceProfilesInst()
public SpaceProfileInst getSpaceProfileInst(String sSpaceProfileName)
sSpaceProfileName
- name of requested space profilepublic SpaceProfileInst getInheritedSpaceProfileInst(String sSpaceProfileName)
public SpaceProfileInst getSpaceProfileInst(int nIndex)
nIndex
- position of requested space profile in space profile listpublic List<SpaceProfileInst> getInheritedProfiles()
public List<SpaceProfileInst> getProfiles()
public void setLevel(int level)
public int getLevel()
public boolean isRoot()
public Date getCreateDate()
public void setCreateDate(Date createDate)
public Date getRemoveDate()
public void setRemoveDate(Date removeDate)
public String getStatus()
public void setStatus(String status)
public Date getUpdateDate()
public void setUpdateDate(Date updateDate)
public String getRemoverUserId()
public void setRemoverUserId(String removerUserId)
public String getUpdaterUserId()
public void setUpdaterUserId(String updaterUserId)
public boolean isInheritanceBlocked()
public void setInheritanceBlocked(boolean isInheritanceBlocked)
public String getLook()
public void setLook(String look)
public UserDetail getCreator()
public void setCreator(UserDetail creator)
public UserDetail getUpdater()
public void setUpdater(UserDetail updater)
public UserDetail getRemover()
public void setRemover(UserDetail remover)
public boolean isDisplaySpaceFirst()
public void setDisplaySpaceFirst(boolean isDisplaySpaceFirst)
public void setPersonalSpace(boolean isPersonalSpace)
public boolean isPersonalSpace()
public Quota getComponentSpaceQuota()
public void setComponentSpaceQuotaMaxCount(long componentSpaceQuotaMaxCount) throws QuotaException
QuotaException
public boolean isComponentSpaceQuotaReached()
public String getComponentSpaceQuotaReachedErrorMessage(String language)
language
-
public Quota getDataStorageQuota()
public void setDataStorageQuotaMaxCount(long dataStorageQuotaMaxCount) throws QuotaException
QuotaException
public boolean isDataStorageQuotaReached()
public String getDataStorageQuotaReachedErrorMessage(String language)
language
-
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public SpaceInst clone()
clone
in class Object
public void removeInheritedProfiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |