|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOrganizationalUnitDAO
Method Summary | |
---|---|
void |
eraseGrant(java.lang.Integer grantId)
Removes a grant |
void |
eraseHierarchy(java.lang.Integer hierarchyId)
Removes the hierarchy |
void |
eraseNodeGrant(OrganizationalUnitGrantNode grantNode)
Remove the grant nodes of a grant |
void |
eraseNodeGrants(java.lang.Integer grantId)
Remove all the grant nodes of a grant(a grant node is an association between a hierarchy node and a KPI model instance node in the context of a grant) |
void |
eraseOrganizationalUnit(java.lang.Integer ouId)
Removes the organizational unit |
void |
eraseOrganizationalUnitNode(OrganizationalUnitNode node)
Removes a node from the structure with its descendants |
boolean |
existsNodeInHierarchy(java.lang.String path,
java.lang.Integer hierarchyId)
Checks if the input path exists in the given hierarchy |
java.util.List<OrganizationalUnitNode> |
getChildrenNodes(java.lang.Integer nodeId)
|
java.util.List<OrganizationalUnitNodeWithGrant> |
getChildrenNodesWithGrants(java.lang.Integer nodeId,
java.lang.Integer grantId)
|
OrganizationalUnitGrant |
getGrant(java.lang.Integer grantId)
Retrieves the grant with id grantId |
java.util.List<OrganizationalUnitNodeWithGrant> |
getGrantNodes(java.lang.Integer ouNodeId,
java.lang.Integer grantId)
Retrieves all the grant nodes associated to an ou and a grant |
java.util.List<OrganizationalUnitGrantNode> |
getGrants(java.lang.Integer kpiModelInstanceId)
Retrieves the grants associated the KPI model instance node identified by the input integer |
java.util.List<OrganizationalUnitGrant> |
getGrantsList()
|
java.util.List<OrganizationalUnitGrantNode> |
getGrantsValidByDate(java.lang.Integer kpiModelInstanceId,
java.util.Date now)
Retrieves the grants associated the KPI model instance node identified by the input integer, valid in the real time |
java.util.List<OrganizationalUnitHierarchy> |
getHierarchiesList()
|
OrganizationalUnitHierarchy |
getHierarchy(java.lang.Integer id)
|
java.util.List<OrganizationalUnitGrantNode> |
getNodeGrants(java.lang.Integer nodeId,
java.lang.Integer grantId)
|
java.util.List<OrganizationalUnitNode> |
getNodes()
Retrieves all ou nodes |
OrganizationalUnit |
getOrganizationalUnit(java.lang.Integer id)
|
OrganizationalUnit |
getOrganizationalUnitByLabelAndName(java.lang.String label,
java.lang.String name)
|
java.util.List<OrganizationalUnit> |
getOrganizationalUnitList()
|
OrganizationalUnitNode |
getOrganizationalUnitNode(java.lang.String path,
java.lang.Integer hierarchyId)
Retrieve the node with the input path in the given hierarchy |
java.util.List<OrganizationalUnitNode> |
getOrganizationalUnitNodeList(java.lang.Integer hierarchyId)
|
java.util.List<OrganizationalUnitNode> |
getRootNodes(java.lang.Integer hierarchyId)
|
java.util.List<OrganizationalUnitNodeWithGrant> |
getRootNodesWithGrants(java.lang.Integer hierarchyId,
java.lang.Integer grantId)
|
boolean |
hasGrants(OrganizationalUnitHierarchy h)
|
boolean |
hasGrants(OrganizationalUnitNode node)
|
void |
insertGrant(OrganizationalUnitGrant grant)
Inserts a new grant |
void |
insertHierarchy(OrganizationalUnitHierarchy h)
Inserts the hierarchy |
void |
insertNodeGrants(java.util.List<OrganizationalUnitGrantNode> grantNodes,
java.lang.Integer grantId)
Inserts a list of grant nodes (a grant node is an association between a hierarchy node and a KPI model instance node in the context of a grant) |
void |
insertOrganizationalUnit(OrganizationalUnit ou)
Inserts the organizational unit |
void |
insertOrganizationalUnitNode(OrganizationalUnitNode aNode)
Inserts the input node in the hierarchy |
boolean |
isInAHierarchy(OrganizationalUnit ou)
|
OrganizationalUnitGrant |
loadGrantByLabel(java.lang.String label)
Retrieves the grant by its label |
void |
modifyGrant(OrganizationalUnitGrant grant)
Modify a grant |
void |
modifyHierarchy(OrganizationalUnitHierarchy h)
Modifies the hierarchy |
void |
modifyOrganizationalUnit(OrganizationalUnit ou)
Modifies the organizational unit |
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao |
---|
getUserProfile, setUserID, setUserProfile |
Method Detail |
---|
java.util.List<OrganizationalUnit> getOrganizationalUnitList()
OrganizationalUnit getOrganizationalUnit(java.lang.Integer id)
OrganizationalUnit getOrganizationalUnitByLabelAndName(java.lang.String label, java.lang.String name)
void eraseOrganizationalUnit(java.lang.Integer ouId)
void insertOrganizationalUnit(OrganizationalUnit ou)
void modifyOrganizationalUnit(OrganizationalUnit ou)
java.util.List<OrganizationalUnitHierarchy> getHierarchiesList()
OrganizationalUnitHierarchy getHierarchy(java.lang.Integer id)
void eraseHierarchy(java.lang.Integer hierarchyId)
void insertHierarchy(OrganizationalUnitHierarchy h)
void modifyHierarchy(OrganizationalUnitHierarchy h)
boolean isInAHierarchy(OrganizationalUnit ou)
java.util.List<OrganizationalUnitNode> getRootNodes(java.lang.Integer hierarchyId)
java.util.List<OrganizationalUnitNodeWithGrant> getRootNodesWithGrants(java.lang.Integer hierarchyId, java.lang.Integer grantId)
java.util.List<OrganizationalUnitNode> getChildrenNodes(java.lang.Integer nodeId)
java.util.List<OrganizationalUnitNodeWithGrant> getChildrenNodesWithGrants(java.lang.Integer nodeId, java.lang.Integer grantId)
java.util.List<OrganizationalUnitGrant> getGrantsList()
void insertGrant(OrganizationalUnitGrant grant)
grant
- void modifyGrant(OrganizationalUnitGrant grant)
grant
- void eraseGrant(java.lang.Integer grantId)
grantId
- The grant identifierjava.util.List<OrganizationalUnitGrantNode> getNodeGrants(java.lang.Integer nodeId, java.lang.Integer grantId)
boolean hasGrants(OrganizationalUnitNode node)
boolean hasGrants(OrganizationalUnitHierarchy h)
void insertNodeGrants(java.util.List<OrganizationalUnitGrantNode> grantNodes, java.lang.Integer grantId)
grantNodes
- void eraseNodeGrants(java.lang.Integer grantId)
grantNodes
- void eraseOrganizationalUnitNode(OrganizationalUnitNode node)
node
- The node to be removedboolean existsNodeInHierarchy(java.lang.String path, java.lang.Integer hierarchyId)
path
- hierarchyId
- The hierarchy identifier
OrganizationalUnitNode getOrganizationalUnitNode(java.lang.String path, java.lang.Integer hierarchyId)
path
- hierarchyId
- The hierarchy identifier
void insertOrganizationalUnitNode(OrganizationalUnitNode aNode)
aNode
- java.util.List<OrganizationalUnitGrantNode> getGrants(java.lang.Integer kpiModelInstanceId)
kpiModelInstanceId
-
java.util.List<OrganizationalUnitNodeWithGrant> getGrantNodes(java.lang.Integer ouNodeId, java.lang.Integer grantId)
ouNodeId
- grantId
-
OrganizationalUnitGrant getGrant(java.lang.Integer grantId)
grantId
- the id of the grant
OrganizationalUnitGrant loadGrantByLabel(java.lang.String label)
label
- the label of the grant
java.util.List<OrganizationalUnitGrantNode> getGrantsValidByDate(java.lang.Integer kpiModelInstanceId, java.util.Date now)
kpiModelInstanceId
- now
-
java.util.List<OrganizationalUnitNode> getNodes()
void eraseNodeGrant(OrganizationalUnitGrantNode grantNode)
grantNode
- to erasejava.util.List<OrganizationalUnitNode> getOrganizationalUnitNodeList(java.lang.Integer hierarchyId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |