APISonar


org.structr.common.RelType.SECURITY

> org > structr > common > RelType > SECURITY
org APIs structr APIs common APIs RelType APIs SECURITY APIs

Example 1
public List<AbstractNode> getSecurityPrincipals() {

		List<AbstractNode> principalList = new LinkedList<AbstractNode>();

		// check any security relationships
		for (AbstractRelationship r : getRelationships(RelType.SECURITY, Direction.INCOMING)) {

			// check security properties
			AbstractNode principalNode = r.getEndNode();

			principalList.add(principalNode);
		}

		return principalList;
	}