public static class OwFileObject.OwFileObjectClass extends Object implements OwObjectClass
File documents class definition for the OwFileDocument Object.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_PROPERTY
class name of the ID property, which is also the getID property of the Object
|
static String |
LAST_MODIFIED_PROPERTY
class name of the date created property
|
protected HashMap |
m_PropertyClassesMap
map containing the property class descriptions of the class
|
static String |
MIME_PROPERTY
class name of the size property
|
static String |
NAME_PROPERTY
class name of the filename property, which is also the getName property of the Object
|
static String |
SIZE_PROPERTY
class name of the size property
|
OPERATION_TYPE_CHECKIN, OPERATION_TYPE_CHECKOUT, OPERATION_TYPE_CREATE_NEW_OBJECT, OPERATION_TYPE_SET_PROPERTIES, OPERATION_TYPE_UNDEF| Constructor and Description |
|---|
OwFileObject.OwFileObjectClass(boolean fDirectory_p)
construct PropertyClass Object and set Property classes
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateNewObject()
check, if new object instances can be created for this class
|
Map |
getChildNames(OwNetwork network_p,
boolean fExcludeHiddenAndNonInstantiable_p)
get the child classes of this class if we deal with a class tree
|
List |
getChilds(OwNetwork network_p,
boolean fExcludeHidden_p)
get the child classes of this class if we deal with a class tree
|
String |
getClassName()
get the name of the class
|
String |
getDescription(Locale locale_p)
retrieve a description of the object class
|
String |
getDisplayName(Locale locale_p)
get the displayable name of the type as defined by the ECM System
|
String |
getID()
get the unique ID of the class
|
List |
getModes(int operation_p)
get the available modes for operations like checkin, createNewObject, setProperties
|
String |
getNamePropertyName()
get the name of the name property
|
OwObjectClass |
getParent()
get the parent class of this class if we deal with a class tree
|
OwPropertyClass |
getPropertyClass(String strClassName_p)
get a map of the available property class descriptions
|
Collection |
getPropertyClassNames()
get a list of the available property class descriptions names
|
int |
getType()
get Object type
|
boolean |
hasChilds(OwNetwork network_p,
boolean fExcludeHiddenAndNonInstantiable_p,
int context_p)
check if children are available
|
boolean |
hasVersionSeries()
check if a version series object class is available, i.e.
|
boolean |
isHidden()
check if class is visible to the user
|
public static final String NAME_PROPERTY
public static final String ID_PROPERTY
public static final String LAST_MODIFIED_PROPERTY
public static final String SIZE_PROPERTY
public static final String MIME_PROPERTY
protected HashMap m_PropertyClassesMap
public OwFileObject.OwFileObjectClass(boolean fDirectory_p)
fDirectory_p - true = directory, false = filepublic int getType()
getType in interface OwObjectClassOwObjectReferencepublic OwObjectClass getParent() throws Exception
getParent in interface OwObjectClassExceptionpublic List getChilds(OwNetwork network_p, boolean fExcludeHidden_p) throws Exception
getChilds in interface OwObjectClassnetwork_p - OwNetwork, in case the class description is static for all users, we can still dynamically load the class membersfExcludeHidden_p - boolean true = exclude all hidden and non instantiable class descriptionsExceptionpublic boolean hasChilds(OwNetwork network_p, boolean fExcludeHiddenAndNonInstantiable_p, int context_p)
hasChilds in interface OwObjectClassnetwork_p - OwNetwork, in case the class description is static for all users, we can still dynamically load the class membersfExcludeHiddenAndNonInstantiable_p - boolean true = exclude all hidden and non instantiable class descriptionscontext_p - OwStatusContextDefinitionspublic Map getChildNames(OwNetwork network_p, boolean fExcludeHiddenAndNonInstantiable_p)
getChildNames in interface OwObjectClassnetwork_p - OwNetwork, in case the class description is static for all users, we can still dynamically load the class membersfExcludeHiddenAndNonInstantiable_p - boolean true = exclude all hidden and non instantiable class descriptionspublic String getClassName()
getClassName in interface OwObjectClasspublic String getID()
public String getDisplayName(Locale locale_p)
getDisplayName in interface OwObjectClasslocale_p - Local to usepublic OwPropertyClass getPropertyClass(String strClassName_p) throws Exception
getPropertyClass in interface OwObjectClassstrClassName_p - Name of classExceptionpublic Collection getPropertyClassNames() throws Exception
getPropertyClassNames in interface OwObjectClassExceptionpublic String getNamePropertyName() throws Exception
getNamePropertyName in interface OwObjectClassExceptionpublic boolean canCreateNewObject()
throws Exception
canCreateNewObject in interface OwObjectClassExceptionpublic boolean hasVersionSeries()
throws Exception
hasVersionSeries in interface OwObjectClassExceptionpublic String getDescription(Locale locale_p)
getDescription in interface OwObjectClasslocale_p - Local to usepublic boolean isHidden()
throws Exception
isHidden in interface OwObjectClassExceptionpublic List getModes(int operation_p) throws Exception
OwObjectClassgetModes in interface OwObjectClassoperation_p - int as defined with OPERATION_TYPE_...ExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.