本文整理汇总了Java中org.springframework.security.acls.model.ObjectIdentity.getType方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectIdentity.getType方法的具体用法?Java ObjectIdentity.getType怎么用?Java ObjectIdentity.getType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.security.acls.model.ObjectIdentity
的用法示例。
在下文中一共展示了ObjectIdentity.getType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findChildren
import org.springframework.security.acls.model.ObjectIdentity; //导入方法依赖的package包/类
public List<ObjectIdentity> findChildren(ObjectIdentity parentIdentity) {
Object[] args = {parentIdentity.getIdentifier(), parentIdentity.getType()};
List<ObjectIdentity> objects = jdbcTemplate.query(findChildrenSql, args,
new RowMapper<ObjectIdentity>() {
public ObjectIdentity mapRow(ResultSet rs, int rowNum) throws SQLException {
String javaType = rs.getString("class");
Long identifier = new Long(rs.getLong("obj_id"));
return new ObjectIdentityImpl(javaType, identifier);
}
});
if (objects.size() == 0) {
return null;
}
return objects;
}
示例2: from
import org.springframework.security.acls.model.ObjectIdentity; //导入方法依赖的package包/类
public static ObjectIdentityData from(ObjectIdentity objectIdentity) {
if(objectIdentity == null || objectIdentity instanceof ObjectIdentityData) {
return (ObjectIdentityData) objectIdentity;
}
return new ObjectIdentityData(objectIdentity.getType(), objectIdentity.getIdentifier());
}
示例3: DomainObjectInfo
import org.springframework.security.acls.model.ObjectIdentity; //导入方法依赖的package包/类
public DomainObjectInfo(ObjectIdentity oid) {
super();
this.id = (String) oid.getIdentifier();
this.type = oid.getType();
}
示例4: AclObjectIdentity
import org.springframework.security.acls.model.ObjectIdentity; //导入方法依赖的package包/类
/**
* Constructs a new <code>AclObjectIdentity</code> out of the provided {@link ObjectIdentity}.
*
* @param objectIdentity the {@link ObjectIdentity} to use for parameter population.
*/
public AclObjectIdentity(ObjectIdentity objectIdentity) {
Assert.notNull(objectIdentity, "ObjectIdentity required");
objectClass = objectIdentity.getType();
id = (String) objectIdentity.getIdentifier();
}