|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ControlInterface public interface ContentTypeControl
Method Summary | |
---|---|
ObjectClass |
createType(ContentContext context,
ObjectClass type)
Create a type in the specified repository. |
ObjectClass |
createType(ContentContext context,
String repositoryName,
String name)
Create a type in the specified repository. |
SortableFilterablePagedResult<ObjectClass> |
getChildTypes(ContentContext context,
ID typeId,
int pageSize)
Returns a list of types which extend the given type. |
SortableFilterablePagedResult<ObjectClass> |
getInstantiableFolderTypes(ContentContext context,
String repositoryName,
int pageSize)
Returns all the folder types for which the user has INSTANTIATE privileges on that type. |
SortableFilterablePagedResult<ObjectClass> |
getInstantiableNonFolderTypes(ContentContext context,
String repositoryName,
int pageSize)
Returns all the non-folder types for which the user has INSTANTIATE privileges on that type. |
SortableFilterablePagedResult<ObjectClass> |
getInstantiableTypes(ContentContext context,
String repositoryName,
int pageSize)
Returns all the types for the given repository for which the user has INSTANTIATION privileges on that type. |
InputStream |
getStream(ContentContext context,
ID typeId,
ID propertyChoiceId)
Return the bytes for the given property choice. |
ObjectClass |
getType(ContentContext context,
ID typeId)
Returns the type with the given ID. |
ObjectClass |
getType(ContentContext context,
String repositoryName,
String typeName)
Returns the type with the given name. |
SortableFilterablePagedResult<ObjectClass> |
getViewableTypes(ContentContext context,
String repositoryName,
int pageSize)
Returns all the types for the given repository for which the user has VIEW privileges on |
boolean |
hasAssociateCapability(ContentContext context,
String repositoryName,
ObjectClass type)
Check to see if the given type has CAN_ASSOCIATE capability for it to be associated with any workflow. |
boolean |
hasCreateCapability(ContentContext context,
String repositoryName,
ObjectClass objectClass)
Check to see if the given type hasCreateCapability |
boolean |
hasDeleteCapability(ContentContext context,
String repositoryName,
ObjectClass objectClass)
Check to see if the given type hasDeleteCapability for the current user. |
boolean |
hasInstantiateCapability(ContentContext context,
String repositoryName,
ObjectClass objectClass)
Check to see if the given type can be instantiated by the given user |
boolean |
hasUpdateCapability(ContentContext context,
String repositoryName,
ObjectClass objectClass)
Check to see if the given type hasUpdateCapability for the current user. |
boolean |
hasViewCapability(ContentContext context,
String repositoryName,
ObjectClass objectClass)
Check to see if the given type hasViewCapability for the current user. |
boolean |
isFolder(ObjectClass type)
Determine whether the given ObjectClass is a folder type |
void |
remove(ContentContext context,
ID typeId)
Deletes the type with the given ID. |
ObjectClass |
save(ContentContext context,
ObjectClass objectClass)
This method updates an existing object class in a single transaction. |
Method Detail |
---|
ObjectClass createType(ContentContext context, String repositoryName, String name) throws AuthenticationException, AuthorizationException, ObjectClassExistsException, RepositoryException
context
- The content context objectrepositoryName
- The name of the repositoryname
- The name of the new type
AuthenticationException
AuthorizationException
ObjectClassExistsException
RepositoryException
ObjectClass createType(ContentContext context, ObjectClass type) throws AuthenticationException, AuthorizationException, ObjectClassExistsException, RepositoryException
context
- The content context objecttype
- If a user already has an object class with property definitions, they can use this.
AuthenticationException
AuthorizationException
ObjectClassExistsException
RepositoryException
ObjectClass getType(ContentContext context, ID typeId) throws AuthenticationException, AuthorizationException, NoSuchObjectClassException, RepositoryException
context
- The content context objecttypeId
- The id of the type
AuthenticationException
AuthorizationException
NoSuchObjectClassException
RepositoryException
ObjectClass getType(ContentContext context, String repositoryName, String typeName) throws AuthenticationException, AuthorizationException, NoSuchObjectClassException, RepositoryException
context
- The content context objectrepositoryName
- The name of the repository to querytypeName
- The id of the type
AuthenticationException
AuthorizationException
NoSuchObjectClassException
RepositoryException
SortableFilterablePagedResult<ObjectClass> getViewableTypes(ContentContext context, String repositoryName, int pageSize) throws AuthenticationException, AuthorizationException, RepositoryException
context
- The content context objectrepositoryName
- The name of the repository
AuthenticationException
AuthorizationException
RepositoryException
SortableFilterablePagedResult<ObjectClass> getInstantiableTypes(ContentContext context, String repositoryName, int pageSize) throws AuthenticationException, AuthorizationException, RepositoryException
context
- The content context objectrepositoryName
- The name of the repository
AuthenticationException
AuthorizationException
RepositoryException
boolean isFolder(ObjectClass type)
type
-
SortableFilterablePagedResult<ObjectClass> getInstantiableFolderTypes(ContentContext context, String repositoryName, int pageSize) throws AuthenticationException, AuthorizationException, RepositoryException
AuthenticationException
AuthorizationException
RepositoryException
SortableFilterablePagedResult<ObjectClass> getInstantiableNonFolderTypes(ContentContext context, String repositoryName, int pageSize) throws AuthenticationException, AuthorizationException, RepositoryException
AuthenticationException
AuthorizationException
RepositoryException
void remove(ContentContext context, ID typeId) throws AuthenticationException, AuthorizationException, NoSuchObjectClassException, RepositoryException
context
- The content context objecttypeId
- The ID of the type to be deleted.
AuthenticationException
AuthorizationException
NoSuchObjectClassException
RepositoryException
InputStream getStream(ContentContext context, ID typeId, ID propertyChoiceId) throws AuthenticationException, AuthorizationException, NoSuchPropertyChoiceException, RepositoryException
context
- The content context objecttypeId
- The id of the typepropertyChoiceId
- The property choice id whose bytes are to be retrieved
AuthenticationException
AuthorizationException
NoSuchPropertyChoiceException
RepositoryException
ObjectClass save(ContentContext context, ObjectClass objectClass) throws AuthenticationException, AuthorizationException, RepositoryException
objectClass
- The object class to update.
AuthenticationException
AuthorizationException
- - if the user attempting the operation is not authorized to perform it.
RepositoryException
- - if error occurs during the update operation.SortableFilterablePagedResult<ObjectClass> getChildTypes(ContentContext context, ID typeId, int pageSize) throws AuthenticationException, AuthorizationException, RepositoryException
typeId
- - The parent type id
AuthenticationException
- - if the user attempting
the operation isn't authenticated against the repository.
AuthorizationException
- - if the user attempting the operation is not authorized to perform it.
RepositoryException
- - if an error occurs while looking up the child types.boolean hasInstantiateCapability(ContentContext context, String repositoryName, ObjectClass objectClass) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositoryobjectClass
- The objectClass
AuthorizationException
boolean hasCreateCapability(ContentContext context, String repositoryName, ObjectClass objectClass) throws AuthorizationException
context
- The ContentContext objectobjectClass
- The objectClass - null checks at the root
AuthorizationException
boolean hasDeleteCapability(ContentContext context, String repositoryName, ObjectClass objectClass) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositoryobjectClass
- The objectclass
AuthorizationException
boolean hasViewCapability(ContentContext context, String repositoryName, ObjectClass objectClass) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositoryobjectClass
- The objectclass
AuthorizationException
boolean hasUpdateCapability(ContentContext context, String repositoryName, ObjectClass objectClass) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositoryobjectClass
- The objectclass
AuthorizationException
boolean hasAssociateCapability(ContentContext context, String repositoryName, ObjectClass type) throws AuthorizationException
context
- The ContentContext objecttype
- The type. Null checks at the root
AuthorizationException
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |