Modifier and Type | Method and Description |
---|---|
void |
TicketComponent.invalidateTicketById(String ticket)
Invalidate the tickets by id
|
String |
TicketComponent.validateTicket(String ticket)
Check that a certificate is valid and can be used in place of a login.
|
Modifier and Type | Method and Description |
---|---|
void |
NodeService.addAspect(NodeRef nodeRef,
QName aspectTypeQName,
Map<QName,Serializable> aspectProperties)
Applies an aspect to the given node.
|
List<ChildAssociationRef> |
NodeService.addChild(Collection<NodeRef> parentRefs,
NodeRef childRef,
QName assocTypeQName,
QName qname)
Associates a given child node with a given collection of parents.
|
ChildAssociationRef |
NodeService.addChild(NodeRef parentRef,
NodeRef childRef,
QName assocTypeQName,
QName qname)
Makes a parent-child association between the given nodes.
|
void |
NodeService.addProperties(NodeRef nodeRef,
Map<QName,Serializable> properties)
Add all given properties to the node.
|
int |
NodeService.countChildAssocs(NodeRef nodeRef,
boolean isPrimary)
Counts the number of child associations of nodeRef.
|
AssociationRef |
NodeService.createAssociation(NodeRef sourceRef,
NodeRef targetRef,
QName assocTypeQName)
Create a peer association between two nodes.
|
ChildAssociationRef |
NodeService.createNode(NodeRef parentRef,
QName assocTypeQName,
QName assocQName,
QName nodeTypeQName) |
ChildAssociationRef |
NodeService.createNode(NodeRef parentRef,
QName assocTypeQName,
QName assocQName,
QName nodeTypeQName,
Map<QName,Serializable> properties)
Creates a new, non-abstract, real node as a primary child of the given parent node.
|
StoreRef |
NodeService.createStore(String protocol,
String identifier)
Create a new store for the given protocol and identifier.
|
void |
NodeService.deleteNode(NodeRef nodeRef)
Deletes the given node.
|
void |
NodeService.deleteStore(StoreRef storeRef)
Delete a store and all its contents.
|
boolean |
NodeService.exists(NodeRef nodeRef) |
boolean |
NodeService.exists(StoreRef storeRef) |
Set<NodeRef> |
NodeService.getAllRootNodes(StoreRef storeRef) |
Set<QName> |
NodeService.getAspects(NodeRef nodeRef) |
List<ChildAssociationRef> |
NodeService.getChildAssocs(NodeRef nodeRef)
Get all child associations of the given node.
|
List<ChildAssociationRef> |
NodeService.getChildAssocs(NodeRef nodeRef,
QNamePattern typeQNamePattern,
QNamePattern qnamePattern)
Gets all child associations where the pattern of the association qualified
name is a match.
|
List<ChildAssociationRef> |
NodeService.getChildAssocs(NodeRef nodeRef,
QNamePattern typeQNamePattern,
QNamePattern qnamePattern,
boolean preload)
Gets all child associations where the pattern of the association qualified
names match the patterns provided.
|
List<ChildAssociationRef> |
NodeService.getChildAssocs(NodeRef nodeRef,
QNamePattern typeQNamePattern,
QNamePattern qnamePattern,
int maxResults,
boolean preload)
Gets all child associations where the pattern of the association qualified
name is an exact match.
|
List<ChildAssociationRef> |
NodeService.getChildAssocs(NodeRef nodeRef,
Set<QName> childNodeTypeQNames)
Retrieve immediate children of a given node where the child nodes are in the given inclusive list.
|
List<ChildAssociationRef> |
NodeService.getChildAssocsByPropertyValue(NodeRef nodeRef,
QName propertyQName,
Serializable value)
Retrieve the immediate children of a given node based on the value of a property of those
children.
|
Collection<ChildAssociationRef> |
NodeService.getChildAssocsWithoutParentAssocsOfType(NodeRef parent,
QName assocTypeQName)
Gets the set of child associations of a certain parent node without parent associations of a certain type to
other nodes with the same parent! In effect the 'orphans' with respect to a certain association type.
|
NodeRef |
NodeService.getChildByName(NodeRef nodeRef,
QName assocTypeQName,
String childName)
Get the node with the given name within the context of the parent node.
|
List<ChildAssociationRef> |
NodeService.getChildrenByName(NodeRef nodeRef,
QName assocTypeQName,
Collection<String> childNames)
Get the nodes with the given names within the context of the parent node.
|
Long |
NodeService.getNodeAclId(NodeRef nodeRef) |
NodeRef |
NodeService.getNodeRef(Long nodeId)
Get the node reference for a given node DB ID
|
NodeRef.Status |
NodeService.getNodeStatus(NodeRef nodeRef)
Gets the ID of the last transaction that caused the node to change.
|
List<ChildAssociationRef> |
NodeService.getParentAssocs(NodeRef nodeRef) |
List<ChildAssociationRef> |
NodeService.getParentAssocs(NodeRef nodeRef,
QNamePattern typeQNamePattern,
QNamePattern qnamePattern)
Gets all parent associations where the pattern of the association qualified
name is a match
|
Path |
NodeService.getPath(NodeRef nodeRef)
The root node has an entry in the path(s) returned.
|
List<Path> |
NodeService.getPaths(NodeRef nodeRef,
boolean primaryOnly)
The root node has an entry in the path(s) returned.
|
ChildAssociationRef |
NodeService.getPrimaryParent(NodeRef nodeRef)
Fetches the primary parent-child relationship.
|
Map<QName,Serializable> |
NodeService.getProperties(NodeRef nodeRef) |
Serializable |
NodeService.getProperty(NodeRef nodeRef,
QName qname) |
NodeRef |
NodeService.getRootNode(StoreRef storeRef) |
List<AssociationRef> |
NodeService.getSourceAssocs(NodeRef targetRef,
QNamePattern qnamePattern)
Fetches all associations to the given target where the associations'
qualified names match the pattern provided.
|
NodeRef |
NodeService.getStoreArchiveNode(StoreRef storeRef)
Get the node where archived items will have gone when deleted from the given store.
|
List<StoreRef> |
NodeService.getStores()
Gets a list of all available node store references
|
List<AssociationRef> |
NodeService.getTargetAssocs(NodeRef sourceRef,
QNamePattern qnamePattern)
Fetches all associations from the given source where the associations'
qualified names match the pattern provided.
|
List<AssociationRef> |
NodeService.getTargetAssocsByPropertyValue(NodeRef sourceRef,
QNamePattern qnamePattern,
QName propertyQName,
Serializable propertyValue)
Fetches all associations from the given source where the associations'
qualified names match the pattern provided.
|
QName |
NodeService.getType(NodeRef nodeRef) |
boolean |
NodeService.hasAspect(NodeRef nodeRef,
QName aspectTypeQName)
Determines if a given aspect is present on a node.
|
ChildAssociationRef |
NodeService.moveNode(NodeRef nodeToMoveRef,
NodeRef newParentRef,
QName assocTypeQName,
QName assocQName)
Moves the primary location of the given node.
|
void |
NodeService.removeAspect(NodeRef nodeRef,
QName aspectTypeQName)
Remove an aspect and all related properties from a node
|
void |
NodeService.removeAssociation(NodeRef sourceRef,
NodeRef targetRef,
QName assocTypeQName) |
void |
NodeService.removeChild(NodeRef parentRef,
NodeRef childRef)
Severs all parent-child relationships between two nodes.
|
boolean |
NodeService.removeChildAssociation(ChildAssociationRef childAssocRef)
Remove a specific child association.
|
void |
NodeService.removeProperty(NodeRef nodeRef,
QName qname)
Removes a property value completely.
|
boolean |
NodeService.removeSeconaryChildAssociation(ChildAssociationRef childAssocRef)
Deprecated.
|
boolean |
NodeService.removeSecondaryChildAssociation(ChildAssociationRef childAssocRef)
Remove a specific secondary child association.
|
NodeRef |
NodeService.restoreNode(NodeRef archivedNodeRef,
NodeRef destinationParentNodeRef,
QName assocTypeQName,
QName assocQName)
Restore an individual node (along with its sub-tree nodes) to the target location.
|
void |
NodeService.setAssociations(NodeRef sourceRef,
QName assocTypeQName,
List<NodeRef> targetRefs)
Re-assign all typed target associations for a given node.
|
void |
NodeService.setChildAssociationIndex(ChildAssociationRef childAssocRef,
int index)
Set the ordering index of the child association.
|
void |
NodeService.setProperties(NodeRef nodeRef,
Map<QName,Serializable> properties)
Replace all current properties on the node with the given properties.
|
void |
NodeService.setProperty(NodeRef nodeRef,
QName qname,
Serializable value)
Sets the value of a property to be any
Serializable instance. |
void |
NodeService.setType(NodeRef nodeRef,
QName typeQName)
Re-sets the type of the node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SearchService.contains(NodeRef nodeRef,
QName propertyQName,
String googleLikePattern)
Search for string pattern in both the node text (if present) and node
properties
|
boolean |
SearchService.contains(NodeRef nodeRef,
QName propertyQName,
String googleLikePattern,
SearchParameters.Operator defaultOperator)
Search for string pattern in both the node text (if present) and node
properties
|
boolean |
SearchService.like(NodeRef nodeRef,
QName propertyQName,
String sqlLikePattern,
boolean includeFTS)
Search for string pattern in both the node text (if present) and node
properties
|
ResultSet |
SearchService.query(SearchParameters searchParameters)
Search using the given SearchParameters
|
ResultSet |
SearchService.query(StoreRef store,
QName queryId,
QueryParameter[] queryParameters)
Execute a canned query
|
ResultSet |
SearchService.query(StoreRef store,
String language,
String query)
Search against a store.
|
ResultSet |
SearchService.query(StoreRef store,
String language,
String query,
QueryParameterDefinition[] queryParameterDefinitions)
Search against a store.
|
List<NodeRef> |
SearchService.selectNodes(NodeRef contextNodeRef,
String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks)
Select nodes using an xpath expression.
|
List<NodeRef> |
SearchService.selectNodes(NodeRef contextNodeRef,
String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks,
String language)
Select nodes using an xpath expression.
|
List<Serializable> |
SearchService.selectProperties(NodeRef contextNodeRef,
String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks)
Select properties using an xpath expression
|
List<Serializable> |
SearchService.selectProperties(NodeRef contextNodeRef,
String xpath,
QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver,
boolean followAllParentLinks,
String language)
Select properties using an xpath expression
|
Modifier and Type | Method and Description |
---|---|
void |
PermissionService.clearPermission(NodeRef nodeRef,
String authority)
Delete all permission for the given authority.
|
void |
PermissionService.clearPermission(StoreRef storeRef,
String authority)
Clear all permission masks for an authority on a store
|
void |
PermissionService.deletePermission(NodeRef nodeRef,
String authority,
String permission)
Find and delete a access control entry by node, authentication and permission.
|
void |
PermissionService.deletePermission(StoreRef storeRef,
String authority,
String permission)
Remove part of a permission mask on a store
|
void |
PermissionService.deletePermissions(NodeRef nodeRef)
Delete all the permission assigned to the node
|
void |
PermissionService.deletePermissions(StoreRef storeRef)
Remove all permission mask on a store
|
String |
PermissionService.getAllAuthorities()
Get the All Authorities
|
String |
PermissionService.getAllPermission()
Get the All Permission
|
Set<AccessPermission> |
PermissionService.getAllSetPermissions(NodeRef nodeRef)
Get all the AccessPermissions that are set for anyone for the given node
|
Set<AccessPermission> |
PermissionService.getAllSetPermissions(StoreRef storeRef)
Get all the AccessPermissions that are set for anyone for the given node
|
boolean |
PermissionService.getInheritParentPermissions(NodeRef nodeRef)
Return the global inheritance behaviour for permissions on a node.
|
String |
PermissionService.getOwnerAuthority()
Get the Owner Authority
|
Set<AccessPermission> |
PermissionService.getPermissions(NodeRef nodeRef)
Get all the AccessPermissions that are granted/denied to the current authentication for the given node
|
Set<String> |
PermissionService.getReaders(Long aclId)
Get the readers associated with a given ACL
|
Set<String> |
PermissionService.getReadersDenied(Long aclId)
Get the denied authorities associated with a given ACL
|
Set<String> |
PermissionService.getSettablePermissions(NodeRef nodeRef)
Get the permissions that can be set for a given node
|
Set<String> |
PermissionService.getSettablePermissions(QName type)
Get the permissions that can be set for a given type
|
AccessStatus |
PermissionService.hasPermission(Long aclID,
PermissionContext context,
String permission)
Check if a permission is allowed on an acl.
|
AccessStatus |
PermissionService.hasPermission(NodeRef nodeRef,
String permission)
Check that the given authentication has a particular permission for the given node.
|
AccessStatus |
PermissionService.hasReadPermission(NodeRef nodeRef)
Check if read permission is allowed on an acl (optimised)
caveats:
doesn't take into account dynamic authorities/groups
doesn't take into account node types/aspects for permissions
|
void |
PermissionService.setInheritParentPermissions(NodeRef nodeRef,
boolean inheritParentPermissions)
Set the global inheritance behaviour for permissions on a node.
|
void |
PermissionService.setInheritParentPermissions(NodeRef nodeRef,
boolean inheritParentPermissions,
boolean asyncCall)
Set the global inheritance behavior for permissions on a node.
|
void |
PermissionService.setPermission(NodeRef nodeRef,
String authority,
String permission,
boolean allow)
Set a specific permission on a node.
|
void |
PermissionService.setPermission(StoreRef storeRef,
String authority,
String permission,
boolean allow)
Add a permission mask to a store
|
Modifier and Type | Method and Description |
---|---|
String |
NamespacePrefixResolver.getNamespaceURI(String prefix)
Gets the namespace URI registered for the given prefix
|
Collection<String> |
NamespacePrefixResolver.getPrefixes()
Gets all registered Prefixes
|
Collection<String> |
NamespacePrefixResolver.getPrefixes(String namespaceURI)
Gets the registered prefixes for the given namespace URI
|
Collection<String> |
NamespacePrefixResolver.getURIs()
Gets all registered Uris
|
void |
NamespaceService.registerNamespace(String prefix,
String uri)
Register a prefix for namespace uri.
|
void |
NamespaceService.unregisterNamespace(String prefix)
Unregister a prefix.
|
Copyright © 2005–2018 Alfresco Software. All rights reserved.