Rev 1068 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package pt.estgp.estgweb.services.directories.xsd;
import pt.estgp.estgweb.utils.DynamicArrayList;
/**
* Created by jorgemachado on 16/11/15.
*/
public class DirectoryImpl extends Directory
{
public DirectoryImpl()
{
super();
setRights(new RightsTImpl());
setGroupsDeclaration(new GroupsDeclarationTImpl());
leaf = new DynamicArrayList<LeafT>(LeafTImpl.class);
}
public boolean isGroupDeclarationEmpty()
{
return groupsDeclaration == null || groupsDeclaration.getGroup() == null || groupsDeclaration.getGroup().size() == 0;
}
public boolean isRightsEmpty()
{
return rights == null || rights.getRight() == null || rights.getRight().size() == 0;
}
public boolean isLeafEmpty()
{
return leaf == null || leaf.size() == 0;
}
}