|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.portlets.structure.factories.StructureFactory
public class StructureFactory
| Constructor Summary | |
|---|---|
StructureFactory()
|
|
| Method Summary | |
|---|---|
static void |
createDefaultStructure()
Create the default cms contentlet structure |
static java.util.List<java.util.Map<java.lang.String,java.io.Serializable>> |
DBSearch(GenericQueryFactory.Query query,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
|
static void |
deleteStructure(java.lang.String inode)
|
static void |
deleteStructure(Structure structure)
|
static void |
disableDefault()
|
static java.util.List<Structure> |
findStructuresUserCanUse(com.liferay.portal.model.User user,
java.lang.String query,
java.lang.Integer structureType,
int offset,
int limit)
|
static java.util.List<SimpleStructureURLMap> |
findStructureURLMapPatterns()
|
static java.util.List<java.lang.String> |
getAllStructuresNames()
This method return the structures s |
static java.util.List<java.lang.String> |
getAllVelocityVariablesNames()
|
static Structure |
getDefaultStructure()
|
static java.util.List<Field> |
getFilesFieldsList(Structure structure,
java.util.List<java.lang.String> parametersName,
java.util.List<java.lang.String[]> values)
Get the list of file fields of a structure having a value in a list of parameters |
static java.util.List<Field> |
getImagesFieldsList(Structure structure,
java.util.List<java.lang.String> parametersName,
java.util.List<java.lang.String[]> values)
Get the list of image fields of a structure having a value in a list of parameters |
static java.util.List<Structure> |
getNoSystemStructuresWithReadPermissions(com.liferay.portal.model.User user,
boolean respectFrontendRoles)
|
static Structure |
getStructureByInode(java.lang.String inode)
Deprecated. Use StructureCache.getStructureByInode instead |
static Structure |
getStructureByType(java.lang.String type)
Deprecated. Use StructureCache.getStructureByName instead |
static Structure |
getStructureByVelocityVarName(java.lang.String varName)
Gets the structure by variable name |
static java.util.List<Structure> |
getStructures()
|
static java.util.List |
getStructures(int limit)
|
static java.util.List<Structure> |
getStructures(java.lang.String orderBy,
int limit)
|
static java.util.List<Structure> |
getStructures(java.lang.String orderBy,
int limit,
java.lang.String direction)
|
static java.util.List<Structure> |
getStructures(java.lang.String condition,
java.lang.String orderBy,
int limit,
int offset,
java.lang.String direction)
|
static java.util.List<Structure> |
getStructuresByUser(com.liferay.portal.model.User user,
java.lang.String condition,
java.lang.String orderBy,
int limit,
int offset,
java.lang.String direction)
|
static java.util.List<Structure> |
getStructuresByWFScheme(WorkflowScheme scheme,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
|
static int |
getStructuresCount(java.lang.String condition)
|
static java.util.List<Structure> |
getStructuresUnderHost(Host h,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
|
static java.util.List<Structure> |
getStructuresWithReadPermissions(com.liferay.portal.model.User user,
boolean respectFrontendRoles)
|
static java.util.List<Structure> |
getStructuresWithWritePermissions(com.liferay.portal.model.User user,
boolean respectFrontendRoles)
|
static java.util.ArrayList<Field> |
getTagsFields(java.lang.String structureInode)
Gets the list of fields of a structure which type it is TAG |
static int |
getTotalDates(Structure structure)
|
static int |
getTotalFiles(Structure structure)
|
static int |
getTotalImages(Structure structure)
|
static int |
getTotals(Structure structure,
java.lang.String typeField)
|
static int |
getTotalTextAreas(Structure structure)
|
static int |
getTotalWYSIWYG(Structure structure)
|
static void |
saveStructure(Structure structure)
|
static void |
saveStructure(Structure structure,
java.lang.String existingId)
|
static void |
setPermissionAPI(PermissionAPI permissionAPIRef)
|
static void |
updateFolderFileAssetReferences(Structure st)
|
static void |
updateFolderReferences(Folder folder)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructureFactory()
| Method Detail |
|---|
public static void setPermissionAPI(PermissionAPI permissionAPIRef)
permissionAPI - the permissionAPI to setpublic static Structure getStructureByInode(java.lang.String inode)
inode - is the contentlet inodepublic static Structure getStructureByType(java.lang.String type)
type - is the name of the structurepublic static Structure getStructureByVelocityVarName(java.lang.String varName)
type - is the name of the structurepublic static Structure getDefaultStructure()
public static java.util.List<java.lang.String> getAllStructuresNames()
public static java.util.List<java.lang.String> getAllVelocityVariablesNames()
public static java.util.List<SimpleStructureURLMap> findStructureURLMapPatterns()
throws DotDataException
DotDataExceptionpublic static java.util.List<Structure> getStructures()
public static java.util.List<Structure> getStructuresByUser(com.liferay.portal.model.User user,
java.lang.String condition,
java.lang.String orderBy,
int limit,
int offset,
java.lang.String direction)
public static java.util.List<Structure> getStructuresWithWritePermissions(com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException
DotDataException
public static java.util.List<Structure> getStructuresWithReadPermissions(com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException
DotDataException
public static java.util.List<Structure> getNoSystemStructuresWithReadPermissions(com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException
DotDataException
public static java.util.List<Structure> getStructuresUnderHost(Host h,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException
DotDataException
public static java.util.List<Structure> getStructuresByWFScheme(WorkflowScheme scheme,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException
DotDataExceptionpublic static java.util.List getStructures(int limit)
public static java.util.List<Structure> getStructures(java.lang.String orderBy,
int limit)
public static java.util.List<Structure> getStructures(java.lang.String orderBy,
int limit,
java.lang.String direction)
public static java.util.List<Structure> getStructures(java.lang.String condition,
java.lang.String orderBy,
int limit,
int offset,
java.lang.String direction)
public static void saveStructure(Structure structure)
throws DotHibernateException
DotHibernateException
public static void saveStructure(Structure structure,
java.lang.String existingId)
throws DotHibernateException
DotHibernateException
public static void deleteStructure(java.lang.String inode)
throws DotHibernateException,
DotDataException
DotHibernateException
DotDataException
public static void deleteStructure(Structure structure)
throws DotHibernateException,
DotDataException
DotHibernateException
DotDataException
public static void disableDefault()
throws DotHibernateException
DotHibernateExceptionpublic static int getTotalDates(Structure structure)
public static int getTotalImages(Structure structure)
public static int getTotalFiles(Structure structure)
public static int getTotalTextAreas(Structure structure)
public static int getTotalWYSIWYG(Structure structure)
public static int getTotals(Structure structure,
java.lang.String typeField)
public static void createDefaultStructure()
throws DotHibernateException
DotHibernateExceptionpublic static java.util.ArrayList<Field> getTagsFields(java.lang.String structureInode)
structureInode - inode of the structure owner of the fields to get
public static int getStructuresCount(java.lang.String condition)
public static java.util.List<Field> getImagesFieldsList(Structure structure,
java.util.List<java.lang.String> parametersName,
java.util.List<java.lang.String[]> values)
structure - The structure whose fields will be compared to the list of values givenparametersName - A list with the velocity name of the fields to be compared to the structurevalues - A list with the values of the fields to be compared to the structure
public static java.util.List<Field> getFilesFieldsList(Structure structure,
java.util.List<java.lang.String> parametersName,
java.util.List<java.lang.String[]> values)
structure - The structure whose fields will be compared to the list of values givenparametersName - A list with the velocity name of the fields to be compared to the structurevalues - A list with the values of the fields to be compared to the structure
public static java.util.List<java.util.Map<java.lang.String,java.io.Serializable>> DBSearch(GenericQueryFactory.Query query,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws ValidationException,
DotDataException
ValidationException
DotDataException
public static void updateFolderReferences(Folder folder)
throws DotDataException
DotDataException
public static void updateFolderFileAssetReferences(Structure st)
throws DotDataException
DotDataException
public static java.util.List<Structure> findStructuresUserCanUse(com.liferay.portal.model.User user,
java.lang.String query,
java.lang.Integer structureType,
int offset,
int limit)
throws DotDataException,
DotSecurityException
DotDataException
DotSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||