Class KmeliaHelper
- java.lang.Object
-
- org.silverpeas.components.kmelia.service.KmeliaHelper
-
- All Implemented Interfaces:
Serializable
public class KmeliaHelper extends Object implements Serializable
- Author:
- neysseri
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intPUBLICATION_CONTENTstatic intPUBLICATION_HEADERstatic StringROLE_ADMINstatic StringROLE_PUBLISHERstatic StringROLE_READERstatic StringROLE_WRITERstatic StringSPECIALFOLDER_NONVISIBLEPUBSstatic StringSPECIALFOLDER_TOVALIDATEstatic intVALIDATION_CLASSICstatic intVALIDATION_COLLEGIATEstatic intVALIDATION_TARGET_1static intVALIDATION_TARGET_N
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckIndex(org.silverpeas.core.contribution.publication.model.PublicationDetail pubDetail)static StringextractObjectIdFromURL(String url)static StringextractObjectTypeFromURL(String url)static StringgetDocumentUrl(org.silverpeas.core.contribution.publication.model.PublicationDetail pubDetail, org.silverpeas.core.contribution.attachment.model.SimpleDocument document, String instanceId)static StringgetNodeUrl(org.silverpeas.core.node.model.NodeDetail nodeDetail)static StringgetProfile(String[] profiles)static StringgetPublicationUrl(org.silverpeas.core.contribution.publication.model.PublicationDetail pubDetail, org.silverpeas.core.node.model.NodePK nodePK)static StringgetSilverpeasRole(Collection<org.silverpeas.core.admin.user.model.SilverpeasRole> roles)static booleanisIndexable(org.silverpeas.core.contribution.publication.model.PublicationDetail pubDetail)static booleanisKmax(String componentId)static booleanisKmelia(String componentId)static booleanisNonVisiblePubsFolder(String id)static booleanisSpecialFolder(String id)static booleanisToolbox(String componentId)static booleanisToValidateFolder(String id)
-
-
-
Field Detail
-
PUBLICATION_HEADER
public static final int PUBLICATION_HEADER
- See Also:
- Constant Field Values
-
PUBLICATION_CONTENT
public static final int PUBLICATION_CONTENT
- See Also:
- Constant Field Values
-
VALIDATION_CLASSIC
public static final int VALIDATION_CLASSIC
- See Also:
- Constant Field Values
-
VALIDATION_TARGET_1
public static final int VALIDATION_TARGET_1
- See Also:
- Constant Field Values
-
VALIDATION_TARGET_N
public static final int VALIDATION_TARGET_N
- See Also:
- Constant Field Values
-
VALIDATION_COLLEGIATE
public static final int VALIDATION_COLLEGIATE
- See Also:
- Constant Field Values
-
ROLE_ADMIN
public static final String ROLE_ADMIN
- See Also:
- Constant Field Values
-
ROLE_PUBLISHER
public static final String ROLE_PUBLISHER
- See Also:
- Constant Field Values
-
ROLE_WRITER
public static final String ROLE_WRITER
- See Also:
- Constant Field Values
-
ROLE_READER
public static final String ROLE_READER
- See Also:
- Constant Field Values
-
SPECIALFOLDER_TOVALIDATE
public static final String SPECIALFOLDER_TOVALIDATE
- See Also:
- Constant Field Values
-
SPECIALFOLDER_NONVISIBLEPUBS
public static final String SPECIALFOLDER_NONVISIBLEPUBS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSilverpeasRole
public static String getSilverpeasRole(Collection<org.silverpeas.core.admin.user.model.SilverpeasRole> roles)
-
checkIndex
public static void checkIndex(org.silverpeas.core.contribution.publication.model.PublicationDetail pubDetail)
-
isIndexable
public static boolean isIndexable(org.silverpeas.core.contribution.publication.model.PublicationDetail pubDetail)
-
getPublicationUrl
public static String getPublicationUrl(org.silverpeas.core.contribution.publication.model.PublicationDetail pubDetail, org.silverpeas.core.node.model.NodePK nodePK)
-
getNodeUrl
public static String getNodeUrl(org.silverpeas.core.node.model.NodeDetail nodeDetail)
-
getDocumentUrl
public static String getDocumentUrl(org.silverpeas.core.contribution.publication.model.PublicationDetail pubDetail, org.silverpeas.core.contribution.attachment.model.SimpleDocument document, String instanceId)
-
isToolbox
public static boolean isToolbox(String componentId)
-
isKmax
public static boolean isKmax(String componentId)
-
isKmelia
public static boolean isKmelia(String componentId)
-
isToValidateFolder
public static boolean isToValidateFolder(String id)
-
isNonVisiblePubsFolder
public static boolean isNonVisiblePubsFolder(String id)
-
isSpecialFolder
public static boolean isSpecialFolder(String id)
-
-