|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentTypeControl
Method Summary | |
---|---|
com.bea.content.ObjectClass |
createType(com.bea.content.ContentContext context,
com.bea.content.ObjectClass type)
Create a type in the specified repository. |
com.bea.content.ObjectClass |
createType(com.bea.content.ContentContext context,
String repositoryName,
String name)
Create a type in the specified repository. |
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.ObjectClass> |
getChildTypes(com.bea.content.ContentContext context,
com.bea.content.ID typeId,
int pageSize)
Returns a list of object classes which extend the given object class. |
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.ObjectClass> |
getInstantiableTypes(com.bea.content.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(com.bea.content.ContentContext context,
com.bea.content.ID typeId,
com.bea.content.ID propertyChoiceId)
Return the bytes for the given property choice. |
com.bea.content.ObjectClass |
getType(com.bea.content.ContentContext context,
com.bea.content.ID typeId)
Returns the type with the given ID. |
com.bea.content.ObjectClass |
getType(com.bea.content.ContentContext context,
String repositoryName,
String typeName)
Returns the type with the given name. |
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.ObjectClass> |
getViewableTypes(com.bea.content.ContentContext context,
String repositoryName,
int pageSize)
Returns all the types for the given repository for which the user has VIEW privileges on |
boolean |
hasAssociateCapability(com.bea.content.ContentContext context,
String repositoryName,
com.bea.content.ObjectClass type)
Check to see if the given type has CAN_ASSOCIATE capability for it to be associated with any workflow. |
boolean |
hasCreateCapability(com.bea.content.ContentContext context,
String repositoryName,
com.bea.content.ObjectClass objectClass)
Check to see if the given type hasCreateCapability |
boolean |
hasDeleteCapability(com.bea.content.ContentContext context,
String repositoryName,
com.bea.content.ObjectClass objectClass)
Check to see if the given type hasDeleteCapability for the current user. |
boolean |
hasInstantiateCapability(com.bea.content.ContentContext context,
String repositoryName,
com.bea.content.ObjectClass objectClass)
Check to see if the given type can be instantiated by the given user |
boolean |
hasUpdateCapability(com.bea.content.ContentContext context,
String repositoryName,
com.bea.content.ObjectClass objectClass)
Check to see if the given type hasUpdateCapability for the current user. |
boolean |
hasViewCapability(com.bea.content.ContentContext context,
String repositoryName,
com.bea.content.ObjectClass objectClass)
Check to see if the given type hasViewCapability for the current user. |
void |
remove(com.bea.content.ContentContext context,
com.bea.content.ID typeId)
Deletes the type with the given ID. |
com.bea.content.ObjectClass |
save(com.bea.content.ContentContext context,
com.bea.content.ObjectClass objectClass)
This method updates an existing object class in a single transaction. |
Method Detail |
---|
com.bea.content.ObjectClass createType(com.bea.content.ContentContext context, String repositoryName, String name) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.ObjectClassExistsException, com.bea.content.RepositoryException
context
- The content context objectrepositoryName
- The name of the repositoryname
- The name of the new type
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
com.bea.content.ObjectClassExistsException
com.bea.content.RepositoryException
com.bea.content.ObjectClass createType(com.bea.content.ContentContext context, com.bea.content.ObjectClass type) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.ObjectClassExistsException, com.bea.content.RepositoryException
context
- The content context objecttype
- If a user already has an object class with property definitions, they can use this.
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
com.bea.content.ObjectClassExistsException
com.bea.content.RepositoryException
com.bea.content.ObjectClass getType(com.bea.content.ContentContext context, com.bea.content.ID typeId) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.NoSuchObjectClassException, com.bea.content.RepositoryException
context
- The content context objecttypeId
- The id of the type
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
com.bea.content.NoSuchObjectClassException
com.bea.content.RepositoryException
com.bea.content.ObjectClass getType(com.bea.content.ContentContext context, String repositoryName, String typeName) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.NoSuchObjectClassException, com.bea.content.RepositoryException
context
- The content context objectrepositoryName
- The name of the repository to querytypeName
- The id of the type
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
com.bea.content.NoSuchObjectClassException
com.bea.content.RepositoryException
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.ObjectClass> getViewableTypes(com.bea.content.ContentContext context, String repositoryName, int pageSize) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.RepositoryException
context
- The content context objectrepositoryName
- The name of the repository
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
com.bea.content.RepositoryException
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.ObjectClass> getInstantiableTypes(com.bea.content.ContentContext context, String repositoryName, int pageSize) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.RepositoryException
context
- The content context objectrepositoryName
- The name of the repository
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
com.bea.content.RepositoryException
void remove(com.bea.content.ContentContext context, com.bea.content.ID typeId) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.NoSuchObjectClassException, com.bea.content.RepositoryException
context
- The content context objecttypeId
- The ID of the type to be deleted.
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
com.bea.content.NoSuchObjectClassException
com.bea.content.RepositoryException
InputStream getStream(com.bea.content.ContentContext context, com.bea.content.ID typeId, com.bea.content.ID propertyChoiceId) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.NoSuchPropertyChoiceException, com.bea.content.RepositoryException
context
- The content context objecttypeId
- The id of the typepropertyChoiceId
- The property choice id whose bytes are to be retrieved
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
com.bea.content.NoSuchPropertyChoiceException
com.bea.content.RepositoryException
com.bea.content.ObjectClass save(com.bea.content.ContentContext context, com.bea.content.ObjectClass objectClass) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.RepositoryException
objectClass
- The object class to update.
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
- - if the user attempting the operation is not authorized to perform it.
com.bea.content.RepositoryException
- - if error occurs during the update operation.com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.ObjectClass> getChildTypes(com.bea.content.ContentContext context, com.bea.content.ID typeId, int pageSize) throws com.bea.content.AuthenticationException, com.bea.content.AuthorizationException, com.bea.content.RepositoryException
typeId
- The parent type id
com.bea.content.AuthenticationException
com.bea.content.AuthorizationException
- - if the user attempting the operation is not authorized to perform it.
com.bea.content.RepositoryException
- - if an error occurs while looking up the child object classes.boolean hasInstantiateCapability(com.bea.content.ContentContext context, String repositoryName, com.bea.content.ObjectClass objectClass) throws com.bea.content.AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositoryobjectClass
- The objectClass
com.bea.content.AuthorizationException
boolean hasCreateCapability(com.bea.content.ContentContext context, String repositoryName, com.bea.content.ObjectClass objectClass) throws com.bea.content.AuthorizationException
context
- The ContentContext objectobjectClass
- The objectClass - null checks at the root
com.bea.content.AuthorizationException
boolean hasDeleteCapability(com.bea.content.ContentContext context, String repositoryName, com.bea.content.ObjectClass objectClass) throws com.bea.content.AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositoryobjectClass
- The objectclass
com.bea.content.AuthorizationException
boolean hasViewCapability(com.bea.content.ContentContext context, String repositoryName, com.bea.content.ObjectClass objectClass) throws com.bea.content.AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositoryobjectClass
- The objectclass
com.bea.content.AuthorizationException
boolean hasUpdateCapability(com.bea.content.ContentContext context, String repositoryName, com.bea.content.ObjectClass objectClass) throws com.bea.content.AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositoryobjectClass
- The objectclass
com.bea.content.AuthorizationException
boolean hasAssociateCapability(com.bea.content.ContentContext context, String repositoryName, com.bea.content.ObjectClass type) throws com.bea.content.AuthorizationException
context
- The ContentContext objecttype
- The type. Null checks at the root
com.bea.content.AuthorizationException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |